Struct lfs_core::Mount

source ·
pub struct Mount {
    pub info: MountInfo,
    pub fs_label: Option<String>,
    pub disk: Option<Disk>,
    pub stats: Result<Stats, StatsError>,
}
Expand description

A mount point

Fields§

§info: MountInfo§fs_label: Option<String>§disk: Option<Disk>§stats: Result<Stats, StatsError>

Implementations§

Return inodes information, when available and consistent

Return the stats, if they could be fetched and make sense.

Most often, you don’t care why there are no stats, because the error cases are mostly non storage volumes, so it’s a best practice to no try to analyze the error but just use this option returning method.

The most interesting case is when a network volume is unreachable, which you can test with is_unreachable().

Tell whether the reason we have no stats is because the filesystem is unreachable

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.