pub enum CziError {
File {
source: FileError,
},
Input {
source: InputError,
},
Internal {
source: InternalError,
},
Unsupported {
source: UnsupportedError,
},
}Variants§
File
Input
Fields
§
source: InputErrorInternal
Fields
§
source: InternalErrorUnsupported
Fields
§
source: UnsupportedErrorImplementations§
Source§impl CziError
impl CziError
pub fn source(&self) -> ErrorSource
pub fn file_invalid_format(context: impl Into<String>) -> Self
pub fn file_invalid_magic( offset: u64, expected: impl Into<String>, actual: impl Into<String>, ) -> Self
pub fn file_metadata(context: impl Into<String>) -> Self
pub fn file_invalid_utf8(context: impl Into<String>) -> Self
pub fn file_decompression(context: impl Into<String>) -> Self
pub fn input_out_of_range( field: impl Into<String>, index: usize, max: usize, ) -> Self
pub fn input_missing_dim(dimension: impl Into<String>) -> Self
pub fn input_argument( field: impl Into<String>, detail: impl Into<String>, ) -> Self
pub fn internal_overflow(operation: impl Into<String>) -> Self
pub fn unsupported_directory_schema(schema: impl Into<String>) -> Self
pub fn unsupported_subblock_schema(schema: impl Into<String>) -> Self
pub fn unsupported_compression(mode: impl Into<String>) -> Self
pub fn unsupported_pixel_type(pixel_type: impl Into<String>) -> Self
Trait Implementations§
Source§impl Error for CziError
impl Error for CziError
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 Freeze for CziError
impl !RefUnwindSafe for CziError
impl Send for CziError
impl Sync for CziError
impl Unpin for CziError
impl UnsafeUnpin for CziError
impl !UnwindSafe for CziError
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