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