pub struct StorageInfo {
pub mount_point: Option<String>,
pub device: Option<String>,
pub fs_type: Option<String>,
pub total_bytes: Option<u64>,
pub used_bytes: Option<u64>,
pub available_bytes: Option<u64>,
pub usage_pct: Option<f64>,
pub read_bytes_sec: Option<u64>,
pub write_bytes_sec: Option<u64>,
}Expand description
Storage information.
Fields§
§mount_point: Option<String>Mount point
device: Option<String>Device name
fs_type: Option<String>Filesystem type
total_bytes: Option<u64>Total space in bytes
used_bytes: Option<u64>Used space in bytes
available_bytes: Option<u64>Available space in bytes
usage_pct: Option<f64>Usage percentage (0-100)
read_bytes_sec: Option<u64>Read throughput (bytes/sec)
write_bytes_sec: Option<u64>Write throughput (bytes/sec)
Trait Implementations§
Source§impl Clone for StorageInfo
impl Clone for StorageInfo
Source§fn clone(&self) -> StorageInfo
fn clone(&self) -> StorageInfo
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 StorageInfo
impl Debug for StorageInfo
Source§impl Default for StorageInfo
impl Default for StorageInfo
Source§fn default() -> StorageInfo
fn default() -> StorageInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorageInfo
impl<'de> Deserialize<'de> for StorageInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StorageInfo
impl Serialize for StorageInfo
Auto Trait Implementations§
impl Freeze for StorageInfo
impl RefUnwindSafe for StorageInfo
impl Send for StorageInfo
impl Sync for StorageInfo
impl Unpin for StorageInfo
impl UnwindSafe for StorageInfo
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