Enum actix_multipart::MultipartError
source · [−]#[non_exhaustive]
pub enum MultipartError {
NoContentDisposition,
NoContentType,
ParseContentType,
Boundary,
Nested,
Incomplete,
Parse(ParseError),
Payload(PayloadError),
NotConsumed,
}
Expand description
A set of errors that can occur during parsing multipart streams
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoContentDisposition
Content-Disposition header is not found or is not equal to “form-data”.
According to RFC 7578 §4.2 a Content-Disposition header must always be present and 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
Incomplete
Multipart stream is incomplete
Parse(ParseError)
Error during field parsing
Payload(PayloadError)
Payload error
NotConsumed
Not consumed
Trait Implementations
Performs the conversion.
Performs the conversion.
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
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more