#[non_exhaustive]pub enum ErrorKind {
Show 14 variants
InvalidInput,
Type,
Bounds,
Allocation,
Callback,
Workspace,
Busy,
InvalidMode,
Open,
Read,
Write,
Close,
UnexpectedEnd,
Native,
}Expand description
Failures distinguished without guessing undocumented native error numbers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidInput
An argument violates the Rust API contract.
Type
An array has the wrong MATLAB class or storage layout.
Bounds
An index, dimension, or allocation size is out of bounds.
Allocation
MATLAB could not allocate memory.
Callback
A trapped MATLAB callback failed.
Workspace
A workspace lookup or update failed.
Busy
The runtime cannot perform the operation while a borrow is active.
InvalidMode
A MAT-file mode does not support the requested operation.
Open
Opening or creating a MAT-file failed.
Read
Reading a MAT-file failed.
Write
Writing a MAT-file failed.
Close
Closing a MAT-file failed.
UnexpectedEnd
Sequential MAT-file reading ended unexpectedly.
Native
A native operation failed without a more specific category.
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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