Enum azalea_buf::BufReadError
source · pub enum BufReadError {
InvalidVarInt,
InvalidVarLong,
CouldNotReadBytes,
StringLengthTooLong {
length: u32,
max_length: u32,
},
Io {
source: Error,
},
InvalidUtf8 {
bytes: Vec<u8>,
lossy: String,
},
UnexpectedEnumVariant {
id: i32,
},
UnexpectedStringEnumVariant {
id: String,
},
UnexpectedEof {
attempted_read: usize,
actual_read: usize,
backtrace: Backtrace,
},
Custom(String),
}Variants§
InvalidVarInt
InvalidVarLong
CouldNotReadBytes
StringLengthTooLong
Io
InvalidUtf8
UnexpectedEnumVariant
UnexpectedStringEnumVariant
UnexpectedEof
Custom(String)
Trait Implementations§
source§impl Debug for BufReadError
impl Debug for BufReadError
source§impl Display for BufReadError
impl Display for BufReadError
source§impl Error for BufReadError
impl Error for BufReadError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()