Struct libpijul::pristine::sanakirja::GenericTxn[][src]

pub struct GenericTxn<T: LoadPage<Error = Error> + RootPage> {
    pub tree: Db_<PathId, Inode, Page<PathId, Inode>>,
    // some fields omitted
}
Expand description

A transaction, used both for mutable and immutable transactions, depending on type parameter T.

In Sanakirja, both sanakirja::Txn and sanakirja::MutTxn implement sanakirja::Transaction, explaining our implementation of TxnT for Txn<T> for all T: sanakirja::Transaction. This covers both mutable and immutable transactions in a single implementation.

Fields

tree: Db_<PathId, Inode, Page<PathId, Inode>>

Implementations

Trait Implementations

Returns the external hash of an internal change identifier, if the change is known. Read more

Returns the internal change identifier of change with external hash hash, if the change is known. Read more

Iterate a function over all channels. The loop stops the first time f returns false. Read more

This is actually safe because the only non-Send fields are open_channels and open_remotes, but we can’t do anything with a ChannelRef whose transaction has been moved to another thread.

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.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. 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.