pub enum Error {
Io(Error),
Mem,
BadMagic,
Unimplemented,
Internal,
Unknown(i32),
}
Expand description
Enumeration of all possible errors in this crate.
Variants§
Io(Error)
An IO error.
Mem
Out of memory.
BadMagic
Bad magic number at start of stream.
Unimplemented
The feature is not available yet.
Internal
Probably a library bug.
Unknown(i32)
All the other error numbers.
This error should never occur, as it is an indication of a bug.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · 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
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()