pub enum TrailerError {
BadMagic,
TooShort,
UnsupportedVersion(u32),
}Expand description
Why a trailer failed to parse.
Variants§
BadMagic
The last TRAILER_LEN bytes did not carry MAGIC — no overlay.
TooShort
Fewer than TRAILER_LEN bytes were supplied.
UnsupportedVersion(u32)
The magic matched but the version is one this stub cannot read.
Trait Implementations§
Source§impl Clone for TrailerError
impl Clone for TrailerError
impl Copy for TrailerError
Source§impl Debug for TrailerError
impl Debug for TrailerError
impl Eq for TrailerError
Source§impl PartialEq for TrailerError
impl PartialEq for TrailerError
impl StructuralPartialEq for TrailerError
Auto Trait Implementations§
impl Freeze for TrailerError
impl RefUnwindSafe for TrailerError
impl Send for TrailerError
impl Sync for TrailerError
impl Unpin for TrailerError
impl UnsafeUnpin for TrailerError
impl UnwindSafe for TrailerError
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