pub struct Transaction<'a, S> { /* private fields */ }

Implementations

Set or delete an alias

Returns the aliases referencing a cid.

Resolves an alias to a cid.

Get a temporary pin for safely adding blocks to the store

Extend temp pin with an additional cid

Checks if the store knows about the cid.

Note that this does not necessarily mean that the store has the data for the cid.

Checks if the store has the data for a cid

Get all cids that the store knows about

Get all cids for which the store has blocks

Get descendants of a cid

Given a root of a dag, gives all cids which we do not have data for.

list all aliases

Put a block. This will only be completed once the transaction is successfully committed

Get a block

Get the stats for the store.

The stats are kept up to date, so this is fast.

Commit and consume the transaction. Default is to not commit.

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.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Scrape the references from an impl Read. Read more
Should always be Self
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