pub enum DeserializeErr {
Eof,
VarNumTooLong(Vec<u8>),
NegativeLength(VarInt),
BadStringEncoding(FromUtf8Error),
InvalidBool(u8),
NbtUnknownTagType(u8),
NbtBadLength(isize),
NbtInvalidStartTag(u8),
CannotUnderstandValue(String),
FailedJsonDeserialize(String),
}
Variants§
Eof
VarNumTooLong(Vec<u8>)
NegativeLength(VarInt)
BadStringEncoding(FromUtf8Error)
InvalidBool(u8)
NbtUnknownTagType(u8)
NbtBadLength(isize)
NbtInvalidStartTag(u8)
CannotUnderstandValue(String)
FailedJsonDeserialize(String)
Trait Implementations§
Source§impl Debug for DeserializeErr
impl Debug for DeserializeErr
Source§impl Display for DeserializeErr
impl Display for DeserializeErr
Source§impl Error for DeserializeErr
impl Error for DeserializeErr
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<'b, R> Into<Result<Deserialized<'b, R>, DeserializeErr>> for DeserializeErr
impl<'b, R> Into<Result<Deserialized<'b, R>, DeserializeErr>> for DeserializeErr
Source§fn into(self) -> DeserializeResult<'b, R>
fn into(self) -> DeserializeResult<'b, R>
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for DeserializeErr
impl RefUnwindSafe for DeserializeErr
impl Send for DeserializeErr
impl Sync for DeserializeErr
impl Unpin for DeserializeErr
impl UnwindSafe for DeserializeErr
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