[][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) -> Option<Channel<Self>>[src]

Trait Implementations

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> TxnT for GenericTxn<T>[src]

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

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

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

type Tree = Db<UnsafePathId, Inode>

type Revtree = Db<Inode, UnsafePathId>

type Changeset = Db<ChangeId, u64>

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

type Channelstates = Db<Merkle, u64>

type Dep = Db<ChangeId, ChangeId>

type Revdep = Db<ChangeId, ChangeId>

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

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

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

pub fn load_channel(&self, name: &str) -> Option<ChannelRef<Self>>[src]

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

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

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

type Revremote = Db<Hash, u64>

type Remotestates = Db<Merkle, u64>

Auto Trait Implementations

impl<T> !RefUnwindSafe for GenericTxn<T>

impl<T> !Sync for GenericTxn<T>

impl<T> Unpin for GenericTxn<T> where
    T: Unpin

impl<T> !UnwindSafe for GenericTxn<T>

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>,