Struct asuran::repository::backend::multifile::MultiFile[][src]

pub struct MultiFile { /* fields omitted */ }

Implementations

Opens a new MultiFile backend with default settings

Subject to change in the near future

Errors

Will error if creating or locking any of the index or manifest files fails (such as if the user does not have permissions for that directory), or if any other I/O error occurs

Reads the encrypted key off the disk

Does not require that the repository be opened first

Note: this path is the repository root path, not the key path

Errors

Will error if the key is corrupted or deserialization otherwise fails

Trait Implementations

Clones the internal MFManifest

Clones the internal MFIndex

Locks the keyfile and writes the key

Will return Err if writing the key fails

Attempts to read the key from the repository

Returns Err if the key doesn’t exist or of another error occurs

Starts reading a chunk, and returns a oneshot recieve with the result of that process

Starts writing a chunk, and returns a oneshot reciever with the result of that process

Closes out the index, segment handler, and manifest cleanly, making sure all operations are completed and all drop impls from inside the tasks are called

Creates a new trait-object based BackendHandle Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more