Module filesystem

Source
Expand description

Filesystem implementation.

Macros§

async_assert
async_assert_eq
async_assert_ne

Structs§

AnyError
An error that can represent any error.
Dir
Represents a directory node in the monofs immutable file system.
ExtendedAttributes
Extended attributes for a file system entity.
File
Represents a file node in the monofs immutable file system.
FileInputStream
A stream for reading from a File asynchronously.
FileOutputStream
A stream for writing to a File asynchronously.
Metadata
Relevant metadata for a file system entity.
SoftLink
Represents a symbolic link to a file or directory in the monofs immutable file system.
Utf8UnixPathSegment
Represents a single segment of a UTF-8 encoded Unix path.

Enums§

Entity
This is an entity in the file system.
EntityType
The kind of an entity in the file system.
FindResult
Result type for find_dir* functions.
FollowResult
Represents the result of following a softlink.
FsError
An error that occurred during a file system operation.
Link
A link representing an association between an identifier and some lazily loaded value or just the value itself.
SyncType
The method of syncing to use for the entity used by the filesystem service.

Traits§

AsyncEq
An async version of the Eq trait.
AsyncPartialEq
An async version of the PartialEq trait.
Resolvable
A trait for types that can be resolved to a target.
StoreSwitchable
A trait for types that can be changed to a different store.

Functions§

Ok
Creates an Ok FsResult.
find_dir
Looks for a directory at the specified path.
find_dir_mut
Looks for a directory at the specified path. This is a mutable version of find_dir.
find_or_create_dir
Retrieves an existing entity or creates a new one at the specified path.

Type Aliases§

AttributeCidLink
A link representing an association between [Cid] and a lazily loaded ExtendedAttributes.
Cached
A type alias for OnceCell holding a lazily initialized value.
CidLink
A link representing an association between Cid and some lazily loaded value.
EntityCidLink
A link representing an association between [Cid] and a lazily loaded Entity or just the Entity itself.
FindResultDir
Result type for find_dir function.
FindResultDirMut
Result type for find_dir_mut function.
FsResult
The result of a file system operation.