[][src]Struct heim::disk::Usage

pub struct Usage(_);

Disk usage statistics.

Compatibility

See os-specific extension traits also.

Methods

impl Usage[src]

pub fn total(
    &self
) -> Quantity<dyn Dimension<N = Z0, T = Z0, J = Z0, L = Z0, Kind = dyn InformationKind + 'static, Th = Z0, M = Z0, I = Z0> + 'static, dyn Units<u64, amount_of_substance = mole, mass = kilogram, length = meter, electric_current = ampere, luminous_intensity = candela, time = second, thermodynamic_temperature = kelvin> + 'static, u64>
[src]

Returns total information amount available in partition.

pub fn used(
    &self
) -> Quantity<dyn Dimension<N = Z0, T = Z0, J = Z0, L = Z0, Kind = dyn InformationKind + 'static, Th = Z0, M = Z0, I = Z0> + 'static, dyn Units<u64, amount_of_substance = mole, mass = kilogram, length = meter, electric_current = ampere, luminous_intensity = candela, time = second, thermodynamic_temperature = kelvin> + 'static, u64>
[src]

Returns used information amount used in partition.

pub fn free(
    &self
) -> Quantity<dyn Dimension<N = Z0, T = Z0, J = Z0, L = Z0, Kind = dyn InformationKind + 'static, Th = Z0, M = Z0, I = Z0> + 'static, dyn Units<u64, amount_of_substance = mole, mass = kilogram, length = meter, electric_current = ampere, luminous_intensity = candela, time = second, thermodynamic_temperature = kelvin> + 'static, u64>
[src]

Returns free information about used in partition.

pub fn ratio(
    &self
) -> Quantity<dyn Dimension<N = Z0, T = Z0, J = Z0, L = Z0, Kind = dyn Kind + 'static, Th = Z0, M = Z0, I = Z0> + 'static, dyn Units<f32, amount_of_substance = mole, mass = kilogram, length = meter, electric_current = ampere, luminous_intensity = candela, time = second, thermodynamic_temperature = kelvin> + 'static, f32>
[src]

Returns the ratio between used and free information amount in partition.

Trait Implementations

impl UsageExt for Usage[src]

impl Debug for Usage[src]

Auto Trait Implementations

impl Send for Usage

impl Unpin for Usage

impl Sync for Usage

impl RefUnwindSafe for Usage

impl UnwindSafe for Usage

Blanket Implementations

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

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

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self