pub enum Error {
NbtError(Error),
DecompressError(DecompressError),
IoError(Error),
MissingHeader,
UnexpectedEof,
Custom(String),
}
Expand description
The general error type which wraps other errors
Variants§
NbtError(Error)
An error that may occur when parsing NBT data
DecompressError(DecompressError)
An error that may occur when decompressing data
IoError(Error)
An error that may occur when interaction with an io
item
MissingHeader
An error that may occur when the header of a region file is missing
UnexpectedEof
An error that may occur when more data is expected by a parser than is provided
Custom(String)
A custom error type that is not used within this crate, but may be needed for implementors of the traits within this crate.
Trait Implementations§
Source§impl From<DecompressError> for Error
impl From<DecompressError> for Error
Source§fn from(value: DecompressError) -> Self
fn from(value: DecompressError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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