pub enum MscError {
Transfer(PipeError),
NoInterface,
NoPipe,
InvalidResponse,
Protocol,
PhaseError,
Scsi(SenseData),
Unaligned,
OutOfRange,
NoSuchLun,
InvalidCdb,
}Expand description
MSC host driver error.
Variants§
Transfer(PipeError)
Transfer error.
NoInterface
No SCSI/BBB interface in the configuration descriptor.
NoPipe
Failed to allocate a pipe.
InvalidResponse
Device response had unexpected length or out-of-range field.
Protocol
CBW/CSW signature or tag mismatch.
PhaseError
Device reported CSW status = 2 (phase error). The transport has been reset; retry the command.
Scsi(SenseData)
SCSI command failed; sense data was fetched via REQUEST SENSE.
Unaligned
Buffer length is not a multiple of the LUN’s block size.
OutOfRange
LBA or block count is out of range for the LUN’s capacity.
NoSuchLun
LUN index >= num_luns().
InvalidCdb
CDB length must be in 1..=16.
Trait Implementations§
Source§impl Error for MscError
impl Error for MscError
1.30.0 · 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 MscError
impl RefUnwindSafe for MscError
impl Send for MscError
impl Sync for MscError
impl Unpin for MscError
impl UnwindSafe for MscError
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