pub struct StorageTransaction<'a, S> where
    S: ReadonlyStorage
{ /* private fields */ }

Implementations

prepares this transaction to be committed to storage

rollback will consume the checkpoint and drop all changes (no really needed, going out of scope does the same, but nice for clarity)

Trait Implementations

range allows iteration over a set of keys, either forwards or backwards uses standard rust range notation, and eg db.range(b“foo“..b“bar“) also works reverse

Returns None when key does not exist. Returns Some(Vec) when key exists. Read more

Removes a database entry at key. 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.

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.