Struct sysutil::StorageDevice
source · pub struct StorageDevice {
pub model: String,
pub device: String,
pub size: ByteSize,
pub partitions: Vec<StoragePartition>,
}
Expand description
Contains information relative to a storage device in the system
Fields§
§model: String
§device: String
§size: ByteSize
§partitions: Vec<StoragePartition>
Trait Implementations§
source§impl Clone for StorageDevice
impl Clone for StorageDevice
source§fn clone(&self) -> StorageDevice
fn clone(&self) -> StorageDevice
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for StorageDevice
impl RefUnwindSafe for StorageDevice
impl Send for StorageDevice
impl Sync for StorageDevice
impl Unpin for StorageDevice
impl UnwindSafe for StorageDevice
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)