pub enum Defect {
UndecodableBytes,
InvalidBase64Padding,
InvalidBase64Characters {
byte: u8,
},
InvalidBase64Length,
NonPrintable {
non_printables: Vec<u8>,
},
InvalidCharset {
charset: String,
},
}
Expand description
These are parsing defects which the parser was able to work around.
Variants§
UndecodableBytes
InvalidBase64Padding
InvalidBase64Characters
InvalidBase64Length
NonPrintable
InvalidCharset
Trait Implementations§
Source§impl Error for Defect
impl Error for Defect
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()
impl Eq for Defect
impl StructuralPartialEq for Defect
Auto Trait Implementations§
impl Freeze for Defect
impl RefUnwindSafe for Defect
impl Send for Defect
impl Sync for Defect
impl Unpin for Defect
impl UnwindSafe for Defect
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