pub enum Error {
Compress(Error),
Xz(String),
ZstdNotCompiled,
QuantBits {
bits: u32,
},
GridDeg {
deg: f64,
},
DensityWeightFloor {
floor: f64,
},
FormatLimit {
what: &'static str,
n: usize,
max: usize,
},
GridLists {
deg: f64,
n: usize,
},
GridListIds {
deg: f64,
n: usize,
},
}Variants§
Compress(Error)
The zstd or brotli compressor reported an I/O failure. The compressors write to memory, so this signals a codec bug rather than an environment problem.
Xz(String)
The xz compressor failed. The no_std lzma_rust2::Error isn’t
core::error::Error, so the message is stringified.
ZstdNotCompiled
QuantBits
GridDeg
DensityWeightFloor
FormatLimit
A count or byte length exceeds the width the container format stores
it at. The encoder fails loudly instead of letting an as wrap
silently corrupt the tables.
GridLists
GridListIds
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more