pub enum StorageUsbError {
UsbMassStorageError(UsbMassStorageError),
BlockDeviceOpenFail,
ListingPartitionFail,
}Expand description
Errors that can occur when working with StorageUsb or partitions.
Variants§
UsbMassStorageError(UsbMassStorageError)
Wrapper around UsbMassStorageError (device communication issues).
BlockDeviceOpenFail
Failed to open a block device interface.
ListingPartitionFail
Partition listing failed (invalid or unreadable partition table).
Trait Implementations§
Source§impl Debug for StorageUsbError
impl Debug for StorageUsbError
Source§impl Display for StorageUsbError
impl Display for StorageUsbError
Source§impl Error for StorageUsbError
impl Error for StorageUsbError
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()
Source§impl From<UsbMassStorageError> for StorageUsbError
impl From<UsbMassStorageError> for StorageUsbError
Source§fn from(source: UsbMassStorageError) -> Self
fn from(source: UsbMassStorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StorageUsbError
impl RefUnwindSafe for StorageUsbError
impl Send for StorageUsbError
impl Sync for StorageUsbError
impl Unpin for StorageUsbError
impl UnwindSafe for StorageUsbError
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