pub enum Error<B: Backend> {
Bytes(Error),
Container(Error<B>),
UnsupportedRevision(u16, String),
NoTopId,
InvalidHeader(Error),
Full,
InvalidBlockSize,
InvalidNode(B::Id),
UnexpectedEof,
InvalidType(Option<B::Id>),
}
Expand description
Error type of this library.
Variants§
Bytes(Error)
Error while (de-) serializing binary data.
Container(Error<B>)
An error occured in a container operation.
UnsupportedRevision(u16, String)
The revision of the archive is not supported anymore. You can open the archive till the given version.
NoTopId
The service requires a top-id but the container does not provide it.
InvalidHeader(Error)
Could not parse the header of the archive.
Full
Cannot aquire another block, the archive is full.
InvalidBlockSize
The block size of the underlaying container is too small.
InvalidNode(B::Id)
Tries to read an archive node, which is invalid.
UnexpectedEof
An error returned by
FileEntry::read_all()
when the
operation could not be completed because an “end of file” was reached
prematurely.
InvalidType(Option<B::Id>)
Could not decode the type of an Entry
stored at the
give block.
Trait Implementations§
Source§impl<B: Backend> Error for Error<B>
impl<B: Backend> Error for Error<B>
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<B> Freeze for Error<B>
impl<B> !RefUnwindSafe for Error<B>
impl<B> Send for Error<B>
impl<B> Sync for Error<B>
impl<B> Unpin for Error<B>
impl<B> !UnwindSafe for Error<B>
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