Enum xz2::stream::Error
[−]
[src]
pub enum Error { Data, Options, Format, MemLimit, Mem, Program, NoCheck, UnsupportedCheck, }
Possible error codes that can be returned from a processing operation.
Variants
Data
The underlying data was corrupt.
Options
Invalid or unsupported options were specified.
Format
File format wasn't recognized.
MemLimit
Memory usage limit was reached.
The memory limit can be increased with set_memlimit
Mem
Memory couldn't be allocated.
Program
A programming error was encountered.
NoCheck
The TELL_NO_CHECK
flag was specified and no integrity check was
available for this stream.
UnsupportedCheck
The TELL_UNSUPPORTED_CHECK
flag was specified and no integrity check
isn't implemented in this build of liblzma for this stream.
Trait Implementations
impl Debug for Error
[src]
impl Clone for Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Error for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more