pub enum Errors {
InvalidField(String),
InvalidEnum(String),
InvalidPacket(String),
IOError(Error),
EncryptionError(ErrorStack),
CompressionError(Error),
UTF8Error(FromUtf8Error),
NbtStringDecodeError(Cesu8DecodingError),
}
Variants§
InvalidField(String)
InvalidEnum(String)
InvalidPacket(String)
IOError(Error)
EncryptionError(ErrorStack)
CompressionError(Error)
UTF8Error(FromUtf8Error)
NbtStringDecodeError(Cesu8DecodingError)
Trait Implementations§
Source§impl Error for Errors
impl Error for Errors
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
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Cesu8DecodingError> for Errors
impl From<Cesu8DecodingError> for Errors
Source§fn from(err: Cesu8DecodingError) -> Self
fn from(err: Cesu8DecodingError) -> Self
Converts to this type from the input type.
Source§impl From<ErrorStack> for Errors
impl From<ErrorStack> for Errors
Source§fn from(err: ErrorStack) -> Self
fn from(err: ErrorStack) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for Errors
impl From<FromUtf8Error> for Errors
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Errors
impl !RefUnwindSafe for Errors
impl Send for Errors
impl Sync for Errors
impl Unpin for Errors
impl !UnwindSafe for Errors
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