Enum http_multipart::MultipartError
source · pub enum MultipartError {
NoPostMethod,
NoContentDisposition,
NoContentType,
ParseContentType,
Boundary,
Nested,
UnexpectedEof,
BufferOverflow,
Header(Error),
Payload(Box<dyn Error + Send + Sync>),
}
Variants§
NoPostMethod
Only POST method is allowed for multipart.
NoContentDisposition
Content-Disposition header is not found or is not equal to “form-data”.
NoContentType
Content-Type header is not found
ParseContentType
Can not parse Content-Type header
Boundary
Multipart boundary is not found
Nested
Nested multipart is not supported
UnexpectedEof
Multipart stream is incomplete
BufferOverflow
Multipart parsing internal buffer overflown
Header(Error)
Error during header parsing
Payload(Box<dyn Error + Send + Sync>)
Payload error
Trait Implementations§
source§impl Debug for MultipartError
impl Debug for MultipartError
source§impl Display for MultipartError
impl Display for MultipartError
source§impl Error for MultipartError
impl Error for MultipartError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for MultipartError
impl Send for MultipartError
impl Sync for MultipartError
impl Unpin for MultipartError
impl !UnwindSafe for MultipartError
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