pub enum MultipartFormDataError {
InvalidMultiPart(&'static str),
ParsingError(&'static str),
HeaderSizeExceed(&'static str),
MaxBodySizeExceed(&'static str),
MaxFieldSizeExceed(String, &'static str),
BodyReadEnd,
Others(&'static str),
}
Variants§
InvalidMultiPart(&'static str)
Occurs, if the request body is not multipart/form-data
ParsingError(&'static str)
Occurs, if failed to parse the request
HeaderSizeExceed(&'static str)
Occurs, if the size of the form part header exceeds the given size
MaxBodySizeExceed(&'static str)
Occurs, if the request body size exceed the given size
MaxFieldSizeExceed(String, &'static str)
Occurs, if the form part content size exceed
BodyReadEnd
Occurs, if parser requires more data to parse fully, but there is no more data left
Others(&'static str)
Occurs, if error not fulfilled by above conditions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultipartFormDataError
impl RefUnwindSafe for MultipartFormDataError
impl Send for MultipartFormDataError
impl Sync for MultipartFormDataError
impl Unpin for MultipartFormDataError
impl UnwindSafe for MultipartFormDataError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more