pub enum DiskioError<T> {
NotInitialized,
AlreadyInitialized,
NotSupported,
WriteProtected,
InvalidArgument,
Hardware(T),
}
Expand description
DiskioDevice
error type.
T
- Device error type.
Variants§
NotInitialized
Device isn’t initialized.
AlreadyInitialized
Device is already initialized.
NotSupported
The feature isn’t supported by this device.
WriteProtected
Can’t write to write protected device.
InvalidArgument
Invalid argument passed to device methods.
Hardware(T)
Hardware error occurred.
Trait Implementations§
impl<T> Copy for Error<T>where
T: Copy,
Auto Trait Implementations§
impl<T> Freeze for Error<T>where
T: Freeze,
impl<T> RefUnwindSafe for Error<T>where
T: RefUnwindSafe,
impl<T> Send for Error<T>where
T: Send,
impl<T> Sync for Error<T>where
T: Sync,
impl<T> Unpin for Error<T>where
T: Unpin,
impl<T> UnwindSafe for Error<T>where
T: UnwindSafe,
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