Enum azalea_buf::BufReadError
source · pub enum BufReadError {
InvalidVarInt,
InvalidVarLong,
CouldNotReadBytes,
StringLengthTooLong {
length: u32,
max_length: u32,
},
Io(Error),
InvalidUtf8,
UnexpectedEnumVariant {
id: i32,
},
UnexpectedStringEnumVariant {
id: String,
},
UnexpectedEof {
attempted_read: usize,
actual_read: usize,
},
Custom(String),
}Variants
InvalidVarInt
InvalidVarLong
CouldNotReadBytes
StringLengthTooLong
Io(Error)
InvalidUtf8
UnexpectedEnumVariant
Fields
id: i32UnexpectedStringEnumVariant
Fields
id: StringUnexpectedEof
Custom(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
sourcefn provide<'_demand>(&'_demand self, demand: &mut Demand<'_demand>)
fn provide<'_demand>(&'_demand self, demand: &mut Demand<'_demand>)
🔬This is a nightly-only experimental API. (
error_generic_member_access)Provides type based access to context intended for error reports. 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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