pub(crate) struct DiskInner {Show 14 fields
type_: DiskKind,
device_name: OsString,
actual_device_name: Option<String>,
file_system: OsString,
mount_point: PathBuf,
total_space: u64,
available_space: u64,
is_removable: bool,
is_read_only: bool,
old_written_bytes: u64,
old_read_bytes: u64,
written_bytes: u64,
read_bytes: u64,
updated: bool,
}
Fields§
§type_: DiskKind
§device_name: OsString
§actual_device_name: Option<String>
§file_system: OsString
§mount_point: PathBuf
§total_space: u64
§available_space: u64
§is_removable: bool
§is_read_only: bool
§old_written_bytes: u64
§old_read_bytes: u64
§written_bytes: u64
§read_bytes: u64
§updated: bool
Implementations§
Source§impl DiskInner
impl DiskInner
pub(crate) fn kind(&self) -> DiskKind
pub(crate) fn name(&self) -> &OsStr
pub(crate) fn file_system(&self) -> &OsStr
pub(crate) fn mount_point(&self) -> &Path
pub(crate) fn total_space(&self) -> u64
pub(crate) fn available_space(&self) -> u64
pub(crate) fn is_removable(&self) -> bool
pub(crate) fn is_read_only(&self) -> bool
pub(crate) fn refresh_specifics( &mut self, refresh_kind: DiskRefreshKind, ) -> bool
fn efficient_refresh( &mut self, refresh_kind: DiskRefreshKind, procfs_disk_stats: &HashMap<String, DiskStat>, first: bool, ) -> bool
pub(crate) fn usage(&self) -> DiskUsage
Auto Trait Implementations§
impl Freeze for DiskInner
impl RefUnwindSafe for DiskInner
impl Send for DiskInner
impl Sync for DiskInner
impl Unpin for DiskInner
impl UnwindSafe for DiskInner
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