pub enum ContainerDecodeError {
Frame(ContainerFrameError),
InvalidUtf8(Utf8Error),
TextCodec(LnmpError),
BinaryCodec(BinaryError),
UnsupportedMode(LnmpFileMode),
}Expand description
Errors returned while decoding the payload content.
Variants§
Frame(ContainerFrameError)
Failure when parsing the container frame.
InvalidUtf8(Utf8Error)
Payload contained invalid UTF-8 (text mode only).
TextCodec(LnmpError)
Text codec reported an error.
BinaryCodec(BinaryError)
Binary codec reported an error.
UnsupportedMode(LnmpFileMode)
Mode is not currently supported by the decoder.
Trait Implementations§
Source§impl Debug for ContainerDecodeError
impl Debug for ContainerDecodeError
Source§impl Display for ContainerDecodeError
impl Display for ContainerDecodeError
Source§impl Error for ContainerDecodeError
impl Error for ContainerDecodeError
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<ContainerFrameError> for ContainerDecodeError
impl From<ContainerFrameError> for ContainerDecodeError
Source§fn from(value: ContainerFrameError) -> Self
fn from(value: ContainerFrameError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContainerDecodeError
impl RefUnwindSafe for ContainerDecodeError
impl Send for ContainerDecodeError
impl Sync for ContainerDecodeError
impl Unpin for ContainerDecodeError
impl UnwindSafe for ContainerDecodeError
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