pub enum CapsuleError {
Show 13 variants
FileTooShort(usize),
InvalidMagic,
InvalidVersionField,
ReservedVersion,
InvalidEncodingField,
InvalidHeaderLengthField,
InvalidBodyCrcField,
HeaderLengthExceedsAvailable {
declared: usize,
available: usize,
},
CrcMismatch {
declared: u32,
computed: u32,
},
NonAsciiByte {
which: &'static str,
offset: usize,
},
InvalidBase64 {
which: &'static str,
message: String,
},
InvalidCbor {
which: &'static str,
message: String,
},
InvalidAsciiHeader(String),
}Variants§
FileTooShort(usize)
InvalidMagic
InvalidVersionField
ReservedVersion
InvalidEncodingField
InvalidHeaderLengthField
InvalidBodyCrcField
HeaderLengthExceedsAvailable
CrcMismatch
NonAsciiByte
InvalidBase64
InvalidCbor
InvalidAsciiHeader(String)
Trait Implementations§
Source§impl Debug for CapsuleError
impl Debug for CapsuleError
Source§impl Display for CapsuleError
impl Display for CapsuleError
Source§impl Error for CapsuleError
impl Error for CapsuleError
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 CapsuleError
impl RefUnwindSafe for CapsuleError
impl Send for CapsuleError
impl Sync for CapsuleError
impl Unpin for CapsuleError
impl UnsafeUnpin for CapsuleError
impl UnwindSafe for CapsuleError
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