pub enum CompressionError {
BufferOperationFailed {
operation: &'static str,
algorithm: Algorithm,
input_len: usize,
output_capacity: usize,
},
StreamInitFailed {
operation: &'static str,
algorithm: Algorithm,
},
StreamProcessFailed {
operation: &'static str,
algorithm: Algorithm,
status: i32,
},
StreamStalled {
operation: &'static str,
algorithm: Algorithm,
},
StreamFinished {
operation: &'static str,
algorithm: Algorithm,
},
OperationFailed {
operation: &'static str,
code: i32,
},
NullHandle {
operation: &'static str,
},
Closed {
resource: &'static str,
},
InvalidFieldKey {
key: String,
},
InvalidHashLength {
expected: usize,
actual: usize,
},
NulByte {
argument: &'static str,
},
Utf8Error {
operation: &'static str,
},
}Expand description
Wraps failures returned by Compression and AppleArchive helpers.
Variants§
BufferOperationFailed
Wraps the BufferOperationFailed failure case reported by Compression or AppleArchive helpers.
Fields
StreamInitFailed
Wraps the StreamInitFailed failure case reported by Compression or AppleArchive helpers.
Fields
StreamProcessFailed
Wraps the StreamProcessFailed failure case reported by Compression or AppleArchive helpers.
Fields
StreamStalled
Wraps the StreamStalled failure case reported by Compression or AppleArchive helpers.
Fields
StreamFinished
Wraps the StreamFinished failure case reported by Compression or AppleArchive helpers.
Fields
OperationFailed
Wraps the OperationFailed failure case reported by Compression or AppleArchive helpers.
Fields
NullHandle
Wraps the NullHandle failure case reported by Compression or AppleArchive helpers.
Closed
Wraps the Closed failure case reported by Compression or AppleArchive helpers.
InvalidFieldKey
Wraps the InvalidFieldKey failure case reported by Compression or AppleArchive helpers.
InvalidHashLength
Wraps the InvalidHashLength failure case reported by Compression or AppleArchive helpers.
NulByte
Wraps the NulByte failure case reported by Compression or AppleArchive helpers.
Utf8Error
Wraps the Utf8Error failure case reported by Compression or AppleArchive helpers.
Trait Implementations§
Source§impl Clone for CompressionError
impl Clone for CompressionError
Source§fn clone(&self) -> CompressionError
fn clone(&self) -> CompressionError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompressionError
impl Debug for CompressionError
Source§impl Display for CompressionError
impl Display for CompressionError
Source§impl Error for CompressionError
impl Error for CompressionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for CompressionError
impl PartialEq for CompressionError
Source§fn eq(&self, other: &CompressionError) -> bool
fn eq(&self, other: &CompressionError) -> bool
self and other values to be equal, and is used by ==.