[][src]Struct heim_disk::IoCounters

pub struct IoCounters(_);

Disk I/O counters.

Compatibility

See os-specific extension traits also.

On some systems such a Linux the numbers returned may overflow and wrap. Contrary to psutil behavior, at the moment heim will not automatically handle these cases and returned values might wrap.

Implementations

impl IoCounters[src]

pub fn device_name(&self) -> &OsStr[src]

Returns disk device name.

pub fn read_count(&self) -> u64[src]

Returns number of reads.

pub fn write_count(&self) -> u64[src]

Returns number of writes.

pub fn read_bytes(&self) -> Information[src]

Returns number of bytes read.

pub fn write_bytes(&self) -> Information[src]

Returns number of bytes written.

Trait Implementations

impl Debug for IoCounters[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.