#[non_exhaustive]pub enum SkippableFrameError {
InvalidMagicVariant(u8),
PayloadTooLarge(usize),
Io(Error),
}Available on crate feature
lsm only.Expand description
Errors surfaced when constructing or writing a SkippableFrame.
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.
InvalidMagicVariant(u8)
magic_variant outside the spec’s 0..=15 range.
PayloadTooLarge(usize)
payload.len() exceeds u32::MAX, the on-wire length field
width, OR would overflow usize when combined with the
8-byte skippable-frame header (32-bit targets).
Io(Error)
Underlying I/O error from the writer.
Trait Implementations§
Source§impl Debug for SkippableFrameError
impl Debug for SkippableFrameError
Source§impl Display for SkippableFrameError
impl Display for SkippableFrameError
Source§impl Error for SkippableFrameError
impl Error for SkippableFrameError
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 SkippableFrameError
impl !RefUnwindSafe for SkippableFrameError
impl Send for SkippableFrameError
impl Sync for SkippableFrameError
impl Unpin for SkippableFrameError
impl UnsafeUnpin for SkippableFrameError
impl !UnwindSafe for SkippableFrameError
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