#[non_exhaustive]pub enum BoundaryError {
NotMultipart,
Missing,
Invalid,
}Expand description
Why a boundary was rejected.
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.
NotMultipart
The media type is not a multipart type.
Missing
The media type has no boundary parameter.
Invalid
The boundary is empty, longer than 70 characters, ends in a space, or has a character RFC 2046 does not allow.
Trait Implementations§
Source§impl Clone for BoundaryError
impl Clone for BoundaryError
impl Copy for BoundaryError
Source§impl Debug for BoundaryError
impl Debug for BoundaryError
Source§impl Display for BoundaryError
impl Display for BoundaryError
impl Eq for BoundaryError
Source§impl Error for BoundaryError
impl Error for BoundaryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl Hash for BoundaryError
impl Hash for BoundaryError
Source§impl PartialEq for BoundaryError
impl PartialEq for BoundaryError
impl StructuralPartialEq for BoundaryError
Auto Trait Implementations§
impl Forget for BoundaryError
impl Freeze for BoundaryError
impl RefUnwindSafe for BoundaryError
impl Send for BoundaryError
impl Sync for BoundaryError
impl Unpin for BoundaryError
impl UnsafeUnpin for BoundaryError
impl UnwindSafe for BoundaryError
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