Struct tbf::InMemoryFs[][src]

pub struct InMemoryFs { /* fields omitted */ }
Expand description

An in-memory implementation of a tag-based filesystem. This implementation will store all data in program memory, only persisting it for the duration of the program runtime.

This is most useful for tests / mocking of a filesystem, and probably not what you want for long term usage.

Implementations

Create a new instance of an in-memory filesystem

Trait Implementations

Returns the “default value” for a type. Read more

The error type to use with this filesystem.

Add a new file with the given data and tags

Edit an existing file, altering the data or tags

Remove an existing file

Search for files matching a given tag pattern

Get info about an existing file

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.