Enum rs3cache_backend::buf::ReadError
source · pub enum ReadError {
Eof {
location: &'static Location<'static>,
expected: usize,
found: usize,
},
NotNulTerminated {
location: &'static Location<'static>,
terminator: u8,
},
NotExhausted {
location: &'static Location<'static>,
remainder: usize,
},
OpcodeNotImplemented {
opcode: u8,
location: &'static Location<'static>,
},
WithInfo {
source: Box<ReadError>,
opcodes: Vec<u8>,
buffer: Bytes,
thing: String,
},
FileSeek {
source: Error,
location: &'static Location<'static>,
},
}
Variants§
Trait Implementations§
source§impl Error for ReadError
impl Error for ReadError
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<'a>(&'a self, demand: &mut Demand<'a>)
fn provide<'a>(&'a self, demand: &mut Demand<'a>)
🔬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()