pub enum SuperblockDecodeError {
InvalidMagicNumber,
ShortRead,
InvalidBlockSize,
InvalidFragmentSize,
InvalidData,
}
Variants§
InvalidMagicNumber
ShortRead
Indicates, that more bytes were expected than provided. This is an internal error.
InvalidBlockSize
InvalidFragmentSize
InvalidData
Trait Implementations§
Source§impl Clone for SuperblockDecodeError
impl Clone for SuperblockDecodeError
Source§fn clone(&self) -> SuperblockDecodeError
fn clone(&self) -> SuperblockDecodeError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SuperblockDecodeError
impl Debug for SuperblockDecodeError
Source§impl Display for SuperblockDecodeError
impl Display for SuperblockDecodeError
Source§impl Error for SuperblockDecodeError
impl Error for SuperblockDecodeError
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<FromUtf8Error> for SuperblockDecodeError
impl From<FromUtf8Error> for SuperblockDecodeError
Source§fn from(_: FromUtf8Error) -> Self
fn from(_: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<SuperblockDecodeError> for Error
impl From<SuperblockDecodeError> for Error
Source§fn from(value: SuperblockDecodeError) -> Self
fn from(value: SuperblockDecodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SuperblockDecodeError
impl PartialEq for SuperblockDecodeError
impl Copy for SuperblockDecodeError
impl Eq for SuperblockDecodeError
impl StructuralPartialEq for SuperblockDecodeError
Auto Trait Implementations§
impl Freeze for SuperblockDecodeError
impl RefUnwindSafe for SuperblockDecodeError
impl Send for SuperblockDecodeError
impl Sync for SuperblockDecodeError
impl Unpin for SuperblockDecodeError
impl UnwindSafe for SuperblockDecodeError
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