Struct asuran::manifest::archive::ActiveArchive[][src]

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

A currently open and able to be modified Archive

This is basically the same thing as an Archive, but has async/await aware synchronization types wrapping some shared state, allowing the archive to be used in multiple tasks at once.

Implementations

Creates a new, empty ActiveArchive

Places an object into a archive, as a whole, without regard to sparsity

Will read holes as 0s

This is implemented as a thin wrapper around put_sparse_object

Inserts a sparse object into the archive

Requires that the object be pre-split into extents

Inserts an object into the archive without writing any bytes

Retreives an object from the archive, without regard to sparsity.

Will fill in holes with zeros.

Retrieve a single extent of an object from the repository

Will write past the end of the last chunk ends after the extent

Retrieves a sparse object from the repository

Will skip over holes

Will not write to extents that are not specified

Returns the namespace of this archive in string form

Changes namespace by adding the name to the end of the namespace

Returns a new archive

Stores archive metatdat in the repository, producing a Stored Archive object, and consuming the Archive in the process.

Returns the key of the serialized archive in the repository

Provides the name of the archive

Provides the timestamp of the archive

Converts an Archive into an ActiveArchive

Converts self into an Archive

Gets a copy of the listing from the archive

Replaces the listing with the provided value

Trait Implementations

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