pub struct FileBackend(_);
Expand description

A backend using a file.

Implementations

Use an already open File as the backend.

Return the inner File.

Opens a new FileBackend for a given path. Errors when the file doesn’t yet exist.

Opens a new FileBackend for a given path. Creates a file if it doesn’t yet exist.

Returns the FileBackend and whether the file already existed.

Opens a new FileBackend for a given path. Creates a file if it doesn’t yet exist, and calls closure with it.

Trait Implementations

Read the all data from the backend.
Write the whole slice to the backend.
Formats the value using the given formatter. 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

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.