pub enum Nd2Error {
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 Nd2Error
impl Nd2Error
pub fn source(&self) -> ErrorSource
pub fn is_file(&self) -> bool
pub fn is_input(&self) -> bool
pub fn is_internal(&self) -> bool
pub fn is_unsupported(&self) -> bool
pub fn file_invalid_format(context: impl Into<String>) -> Self
pub fn file_chunkmap(context: impl Into<String>) -> Self
pub fn file_metadata(context: impl Into<String>) -> Self
pub fn file_invalid_magic(expected: u32, actual: u32) -> Self
pub fn file_chunk_not_found(name: 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_version(major: u32, minor: u32) -> Self
pub fn unsupported_clx_type(type_code: u8) -> Self
Trait Implementations§
Source§impl Error for Nd2Error
impl Error for Nd2Error
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 Nd2Error
impl !RefUnwindSafe for Nd2Error
impl Send for Nd2Error
impl Sync for Nd2Error
impl Unpin for Nd2Error
impl UnsafeUnpin for Nd2Error
impl !UnwindSafe for Nd2Error
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