pub enum PeripheralType {
DirectAccess,
SequentialAccess,
CdDvd,
Optical,
SimplifiedDirectAccess,
Other(u8),
}Expand description
SCSI peripheral-device type (SPC-3 §6.4.2, bits 0..4 of INQUIRY byte 0).
Variants§
DirectAccess
Direct-access block device (USB sticks, HDDs, SSDs, SD cards).
SequentialAccess
Sequential-access device (tape).
CdDvd
CD/DVD.
Optical
Optical memory device.
SimplifiedDirectAccess
Reduced-block-command (RBC) direct-access device.
Other(u8)
Any other peripheral type.
Trait Implementations§
Source§impl Clone for PeripheralType
impl Clone for PeripheralType
Source§fn clone(&self) -> PeripheralType
fn clone(&self) -> PeripheralType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PeripheralType
impl Debug for PeripheralType
Source§impl Format for PeripheralType
impl Format for PeripheralType
Source§impl PartialEq for PeripheralType
impl PartialEq for PeripheralType
impl Copy for PeripheralType
impl Eq for PeripheralType
impl StructuralPartialEq for PeripheralType
Auto Trait Implementations§
impl Freeze for PeripheralType
impl RefUnwindSafe for PeripheralType
impl Send for PeripheralType
impl Sync for PeripheralType
impl Unpin for PeripheralType
impl UnwindSafe for PeripheralType
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