pub enum OptionEntryError {
WrongSize {
expected: usize,
actual: usize,
},
InvalidUtf8(Utf8Error),
Validation(ContentValidationError),
}Expand description
Errors that can occur while parsing a single option entry.
Variants§
WrongSize
The size of the option entry is not correct.
InvalidUtf8(Utf8Error)
The option payload is not valid UTF-8.
Validation(ContentValidationError)
Validation error while decoding an option entry.
Trait Implementations§
Source§impl Debug for OptionEntryError
impl Debug for OptionEntryError
Source§impl Display for OptionEntryError
impl Display for OptionEntryError
Source§impl Error for OptionEntryError
impl Error for OptionEntryError
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 From<ContentValidationError> for OptionEntryError
impl From<ContentValidationError> for OptionEntryError
Source§fn from(source: ContentValidationError) -> Self
fn from(source: ContentValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for OptionEntryError
impl !UnwindSafe for OptionEntryError
impl Forget for OptionEntryError
impl Freeze for OptionEntryError
impl Move for OptionEntryError
impl Send for OptionEntryError
impl Sync for OptionEntryError
impl Unpin for OptionEntryError
impl UnsafeUnpin for OptionEntryError
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