Struct block_utils::ScsiInfo
source · [−]pub struct ScsiInfo {
pub block_device: Option<PathBuf>,
pub enclosure: Option<Enclosure>,
pub host: u8,
pub channel: u8,
pub id: u8,
pub lun: u8,
pub vendor: Vendor,
pub model: Option<String>,
pub rev: Option<String>,
pub state: Option<DeviceState>,
pub scsi_type: ScsiDeviceType,
pub scsi_revision: u32,
}Fields
block_device: Option<PathBuf>enclosure: Option<Enclosure>host: u8channel: u8id: u8lun: u8vendor: Vendormodel: Option<String>rev: Option<String>state: Option<DeviceState>scsi_type: ScsiDeviceTypescsi_revision: u32Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ScsiInfo
impl Send for ScsiInfo
impl Sync for ScsiInfo
impl Unpin for ScsiInfo
impl UnwindSafe for ScsiInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more