Struct slos_filesystem::FilesystemMountpoint[][src]

pub struct FilesystemMountpoint {
    pub path: StaticCollection<Option<Spur>>,
    pub root: Option<UnsafeContainer<Box<dyn FsRoot>>>,
}
Expand description

Container for filesystem mountpoint roots

This mostly exists as an implementation detail of FilesystemBase.

Fields

path: StaticCollection<Option<Spur>>

Segments of the path making up the mountpoint

Paths are stored internally as interned strings, see the path_string method to get the path in a format that can be used outside of this module.

root: Option<UnsafeContainer<Box<dyn FsRoot>>>

Filesystem root, as a contained FsRoot trait object

Implementations

Get the absolute path to this mountpoint

This function takes care of resolving the interned strings that make up the path field of this structure, but no post-conversion path normalization is performed before returning.

If you’re planning to use the path for anything other than passing straight back into FilesystemBase, unless you really know what you’re doing, please use the path_string method instead.

Get the absolute path to this mountpoint as a String

This function performs path normalization, so the returned path is safe to use in non-internal methods.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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

Performs the conversion.

Performs the conversion.

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.