#[non_exhaustive]pub enum LegacyFrameError {
Truncated,
UnsupportedParameter,
Corrupted {
reason: &'static str,
},
OutputTooSmall,
DictionaryCorrupted,
DictionaryMismatch {
expected: u32,
provided: u32,
},
ChecksumMismatch {
expected: u32,
calculated: u32,
},
}Available on crate feature
legacy only.Expand description
Why a frame of the v0.5, v0.6 or v0.7 format could not be decoded.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Truncated
The input ends inside the frame.
UnsupportedParameter
The frame header sets a reserved bit or asks for a window the format does not allow.
Corrupted
The frame is malformed; reason names the structure that is.
OutputTooSmall
The output buffer is too small for the frame’s content.
DictionaryCorrupted
The dictionary could not be read.
DictionaryMismatch
The frame needs a dictionary with another ID than the one supplied.
Fields
ChecksumMismatch
The 22-bit content checksum of a v0.7 frame does not match its output.
Implementations§
Trait Implementations§
Source§impl Clone for LegacyFrameError
impl Clone for LegacyFrameError
impl Copy for LegacyFrameError
Source§impl Debug for LegacyFrameError
impl Debug for LegacyFrameError
Source§impl Display for LegacyFrameError
impl Display for LegacyFrameError
impl Eq for LegacyFrameError
Source§impl Error for LegacyFrameError
Available on crate feature std only.
impl Error for LegacyFrameError
Available on crate feature
std only.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 From<LegacyFrameError> for FrameDecoderError
impl From<LegacyFrameError> for FrameDecoderError
Source§fn from(err: LegacyFrameError) -> Self
fn from(err: LegacyFrameError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LegacyFrameError
impl PartialEq for LegacyFrameError
impl StructuralPartialEq for LegacyFrameError
Auto Trait Implementations§
impl Freeze for LegacyFrameError
impl RefUnwindSafe for LegacyFrameError
impl Send for LegacyFrameError
impl Sync for LegacyFrameError
impl Unpin for LegacyFrameError
impl UnsafeUnpin for LegacyFrameError
impl UnwindSafe for LegacyFrameError
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