pub enum ReadBreadError {
Io(Error),
NotBread,
UnsupportedVersion(u16),
Truncated,
Corrupt(ChunkTag),
BadPayload(ChunkTag),
}Expand description
Why a .bread file could not be read.
Variants§
Io(Error)
NotBread
The file does not start with the .bread magic.
UnsupportedVersion(u16)
The file was written by a newer container layout, or has container version 0, which no version is.
Truncated
The file ends inside a chunk.
Corrupt(ChunkTag)
A chunk’s bytes do not match their checksum.
BadPayload(ChunkTag)
A chunk’s payload does not decompress to its recorded length.
Trait Implementations§
Source§impl Debug for ReadBreadError
impl Debug for ReadBreadError
Source§impl Display for ReadBreadError
impl Display for ReadBreadError
Source§impl Error for ReadBreadError
impl Error for ReadBreadError
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<Error> for ReadBreadError
impl From<Error> for ReadBreadError
Source§impl From<ReadBreadError> for ReadFileError
impl From<ReadBreadError> for ReadFileError
Source§fn from(err: ReadBreadError) -> Self
fn from(err: ReadBreadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ReadBreadError
impl !UnwindSafe for ReadBreadError
impl Forget for ReadBreadError
impl Freeze for ReadBreadError
impl Move for ReadBreadError
impl Send for ReadBreadErrorwhere
Repr: Send,
impl Sync for ReadBreadErrorwhere
Repr: Sync,
impl Unpin for ReadBreadError
impl UnsafeUnpin for ReadBreadError
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