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

pub struct GenericTxn<T: Transaction> { /* fields omitted */ }

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.

Implementations

impl GenericTxn<Txn<Exclusive, Arc<Env<Exclusive>>>>[src]

impl GenericTxn<Txn<Exclusive, Arc<Env<Exclusive>>>>[src]

pub fn load_const_channel(
    &self,
    name: &str
) -> Result<Option<Channel>, SanakirjaError>
[src]

Trait Implementations

impl<T: Transaction> ChannelTxnT for GenericTxn<T>[src]

type Channel = Channel

type Changeset = Db<ChangeId, u64>

type RevChangeset = Db<u64, (ChangeId, Merkle)>

type ChangesetCursor = Cursor

type RevchangesetCursor = Cursor

type States = Db<Merkle, u64>

impl<T: Transaction> DepsTxnT for GenericTxn<T>[src]

type DepsError = SanakirjaError

type Dep = Db<ChangeId, ChangeId>

type Revdep = Db<ChangeId, ChangeId>

type DepCursor = Cursor

type Touched_files = Db<Position<ChangeId>, ChangeId>

type Rev_touched_files = Db<ChangeId, Position<ChangeId>>

type Touched_filesCursor = Cursor

type Rev_touched_filesCursor = Cursor

impl<T: Transaction> GraphIter for GenericTxn<T>[src]

type GraphCursor = Cursor

impl<T: Transaction> GraphTxnT for GenericTxn<T>[src]

type Graph = Db<Vertex<ChangeId>, Edge>

type GraphError = SanakirjaError

type Adj = Adj

impl<T: Transaction> Send for GenericTxn<T>[src]

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.

impl<T: Transaction> TreeTxnT for GenericTxn<T>[src]

type TreeError = SanakirjaError

type Inodes = Db<Inode, Position<ChangeId>>

type Revinodes = Db<Position<ChangeId>, Inode>

type InodesCursor = Cursor

type RevinodesCursor = Cursor

type Tree = Db<UnsafePathId, Inode>

type TreeCursor = Cursor

type RevtreeCursor = Cursor

type Revtree = Db<Inode, UnsafePathId>

type Partials = Db<UnsafeSmallStr, Position<ChangeId>>

type PartialsCursor = Cursor

impl<T: Transaction> TxnT for GenericTxn<T>[src]

type Channels = Db<UnsafeSmallStr, (u64, u64, u64, u64, u64, u64)>

type ChannelsCursor = Cursor

type Remotes = Db<UnsafeSmallStr, (u64, u64, u64)>

type RemotesCursor = Cursor

type Remote = Db<u64, (Hash, Merkle)>

type Revremote = Db<Hash, u64>

type Remotestates = Db<Merkle, u64>

type RemoteCursor = Cursor

Auto Trait Implementations

impl<T> !RefUnwindSafe for GenericTxn<T>[src]

impl<T> !Sync for GenericTxn<T>[src]

impl<T> Unpin for GenericTxn<T> where
    T: Unpin
[src]

impl<T> !UnwindSafe for GenericTxn<T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,