pub enum DiskError {
AbortDueToPreemptAndAbort,
IllegalBlock,
InvalidInput,
Io(Error),
MediumError(Error, MediumErrorDetails),
MemoryAccess(AccessError),
ReadOnly,
ReservationConflict,
UnsupportedEject,
}
Expand description
A disk operation error.
Variants§
AbortDueToPreemptAndAbort
The request failed due to a preempt and abort status.
IllegalBlock
The LBA was out of range.
InvalidInput
The request failed due to invalid input.
Io(Error)
The request failed due to an unrecovered IO error.
MediumError(Error, MediumErrorDetails)
The request failed due to a reportable medium error.
MemoryAccess(AccessError)
The request failed due to a failure to access the specified buffers.
ReadOnly
The request failed because the disk is read-only.
ReservationConflict
The request failed due to a persistent reservation conflict.
UnsupportedEject
The request failed because eject is not supported.
Trait Implementations§
Source§impl Error for DiskError
impl Error for DiskError
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 DiskError
impl !RefUnwindSafe for DiskError
impl Send for DiskError
impl Sync for DiskError
impl Unpin for DiskError
impl !UnwindSafe for DiskError
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