Struct littlefs::LittleFs

source ·
pub struct LittleFs<T: Storage> { /* private fields */ }
Expand description

An instance of the Little filesystem. This struct defines the method of interacting with the filesystem and contains all of the data required for the C software.

Implementations§

Interface to the LittleFS.

Create a new instance of the LittleFS.

Format the filesystem.

Mount the filesystem.

Unmount the filesystem.

Remove a file or directory.

Rename or move a file or directory.

Populate info for file or directory at specified path.

Open a file at the given path.

Close out the given file.

Synchronize file contents to storage.

Read data from file.

Write data to file.

Change position of subsequent read / write in file.

Tell current position of handle within the file.

Rewind file handle to the start of the file.

Return total number of bytes in file.

Create a new directory.

Open a directory.

Close a directory.

Read contents of a directory.

Change the position within the directory.

Report position within the directory.

Rewrite directory handle back to start of directory.

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 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.