pub enum LnmpContainerError {
TruncatedHeader,
InvalidMagic,
UnsupportedVersion(u8),
UnknownMode(u8),
}Expand description
Errors that can occur while handling headers.
Variants§
TruncatedHeader
Header is shorter than expected.
InvalidMagic
Magic bytes do not match LNMP.
UnsupportedVersion(u8)
Container version is not supported.
UnknownMode(u8)
Mode identifier is unknown.
Trait Implementations§
Source§impl Clone for LnmpContainerError
impl Clone for LnmpContainerError
Source§fn clone(&self) -> LnmpContainerError
fn clone(&self) -> LnmpContainerError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LnmpContainerError
impl Debug for LnmpContainerError
Source§impl Display for LnmpContainerError
impl Display for LnmpContainerError
Source§impl Error for LnmpContainerError
impl Error for LnmpContainerError
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 PartialEq for LnmpContainerError
impl PartialEq for LnmpContainerError
impl Copy for LnmpContainerError
impl Eq for LnmpContainerError
impl StructuralPartialEq for LnmpContainerError
Auto Trait Implementations§
impl Freeze for LnmpContainerError
impl RefUnwindSafe for LnmpContainerError
impl Send for LnmpContainerError
impl Sync for LnmpContainerError
impl Unpin for LnmpContainerError
impl UnwindSafe for LnmpContainerError
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