Enum azalea_buf::BufReadError
source · [−]pub enum BufReadError {
InvalidVarInt,
InvalidVarLong,
CouldNotReadBytes,
StringLengthLessThanZero,
StringLengthTooLong {
length: i32,
max_length: u32,
},
Io(Error),
InvalidBoolean,
InvalidUtf8,
UnexpectedEnumVariant {
id: i32,
},
UnexpectedStringEnumVariant {
id: String,
},
Custom(String),
}Variants
InvalidVarInt
InvalidVarLong
CouldNotReadBytes
StringLengthLessThanZero
StringLengthTooLong
Io(Error)
InvalidBoolean
InvalidUtf8
UnexpectedEnumVariant
Fields
id: i32UnexpectedStringEnumVariant
Fields
id: StringCustom(String)
Trait Implementations
sourceimpl Debug for BufReadError
impl Debug for BufReadError
sourceimpl Display for BufReadError
impl Display for BufReadError
sourceimpl Error for BufReadError
impl Error for BufReadError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for BufReadError
impl Send for BufReadError
impl Sync for BufReadError
impl Unpin for BufReadError
impl !UnwindSafe for BufReadError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more