pub enum ContentDispositionError {
EmptyHeader,
InvalidParameterFormat(String),
InvalidExtendedParameter(String),
Utf8DecodingError(String),
InvalidCharset(String),
}Expand description
Error type for Content-Disposition operations
Variants§
EmptyHeader
Empty Content-Disposition header
InvalidParameterFormat(String)
Invalid parameter format
InvalidExtendedParameter(String)
Invalid extended parameter format
Utf8DecodingError(String)
UTF-8 decoding error
InvalidCharset(String)
Invalid charset
Trait Implementations§
Source§impl Debug for ContentDispositionError
impl Debug for ContentDispositionError
Source§impl Display for ContentDispositionError
impl Display for ContentDispositionError
Source§impl Error for ContentDispositionError
impl Error for ContentDispositionError
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()
Auto Trait Implementations§
impl Freeze for ContentDispositionError
impl RefUnwindSafe for ContentDispositionError
impl Send for ContentDispositionError
impl Sync for ContentDispositionError
impl Unpin for ContentDispositionError
impl UnsafeUnpin for ContentDispositionError
impl UnwindSafe for ContentDispositionError
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