Trait libpijul::pristine::TreeTxnT[][src]

pub trait TreeTxnT: Sized {
    type TreeError: Error + Send + Sync + 'static;
    type Tree;
    type TreeCursor;
    type Revtree;
    type RevtreeCursor;
    type Inodes;
    type Revinodes;
    type Partials;
    type PartialsCursor;
    type InodesCursor;
    type RevinodesCursor;
Show 24 methods fn get_tree<'txn>(
        &'txn self,
        key: &PathId,
        value: Option<&Inode>
    ) -> Result<Option<&'txn Inode>, TxnErr<Self::TreeError>>;
fn cursor_tree_next<'txn>(
        &'txn self,
        cursor: &mut Self::TreeCursor
    ) -> Result<Option<(&'txn PathId, &'txn Inode)>, TxnErr<Self::TreeError>>;
fn cursor_tree_prev<'txn>(
        &'txn self,
        cursor: &mut Self::TreeCursor
    ) -> Result<Option<(&'txn PathId, &'txn Inode)>, TxnErr<Self::TreeError>>;
fn cursor_tree<'txn>(
        &'txn self,
        db: &Self::Tree,
        pos: Option<(&PathId, Option<&Inode>)>
    ) -> Result<Cursor<Self, &'txn Self, Self::TreeCursor, PathId, Inode>, TxnErr<Self::TreeError>>;
fn iter_tree<'txn>(
        &'txn self,
        k: &PathId,
        v: Option<&Inode>
    ) -> Result<Cursor<Self, &'txn Self, Self::TreeCursor, PathId, Inode>, TxnErr<Self::TreeError>>;
fn get_revtree<'txn>(
        &'txn self,
        key: &Inode,
        value: Option<&PathId>
    ) -> Result<Option<&'txn PathId>, TxnErr<Self::TreeError>>;
fn cursor_revtree_next<'txn>(
        &'txn self,
        cursor: &mut Self::RevtreeCursor
    ) -> Result<Option<(&'txn Inode, &'txn PathId)>, TxnErr<Self::TreeError>>;
fn cursor_revtree_prev<'txn>(
        &'txn self,
        cursor: &mut Self::RevtreeCursor
    ) -> Result<Option<(&'txn Inode, &'txn PathId)>, TxnErr<Self::TreeError>>;
fn cursor_revtree<'txn>(
        &'txn self,
        db: &Self::Revtree,
        pos: Option<(&Inode, Option<&PathId>)>
    ) -> Result<Cursor<Self, &'txn Self, Self::RevtreeCursor, Inode, PathId>, TxnErr<Self::TreeError>>;
fn iter_revtree<'txn>(
        &'txn self,
        k: &Inode,
        v: Option<&PathId>
    ) -> Result<Cursor<Self, &'txn Self, Self::RevtreeCursor, Inode, PathId>, TxnErr<Self::TreeError>>;
fn get_inodes<'txn>(
        &'txn self,
        key: &Inode,
        value: Option<&Position<ChangeId>>
    ) -> Result<Option<&'txn Position<ChangeId>>, TxnErr<Self::TreeError>>;
fn get_revinodes<'txn>(
        &'txn self,
        key: &Position<ChangeId>,
        value: Option<&Inode>
    ) -> Result<Option<&'txn Inode>, TxnErr<Self::TreeError>>;
fn cursor_partials_next<'txn>(
        &'txn self,
        cursor: &mut Self::PartialsCursor
    ) -> Result<Option<(&'txn SmallStr, &'txn Position<ChangeId>)>, TxnErr<Self::TreeError>>;
fn cursor_partials_prev<'txn>(
        &'txn self,
        cursor: &mut Self::PartialsCursor
    ) -> Result<Option<(&'txn SmallStr, &'txn Position<ChangeId>)>, TxnErr<Self::TreeError>>;
fn cursor_partials<'txn>(
        &'txn self,
        db: &Self::Partials,
        pos: Option<(&SmallStr, Option<&Position<ChangeId>>)>
    ) -> Result<Cursor<Self, &'txn Self, Self::PartialsCursor, SmallStr, Position<ChangeId>>, TxnErr<Self::TreeError>>;
fn cursor_inodes_next<'txn>(
        &'txn self,
        cursor: &mut Self::InodesCursor
    ) -> Result<Option<(&'txn Inode, &'txn Position<ChangeId>)>, TxnErr<Self::TreeError>>;
fn cursor_inodes_prev<'txn>(
        &'txn self,
        cursor: &mut Self::InodesCursor
    ) -> Result<Option<(&'txn Inode, &'txn Position<ChangeId>)>, TxnErr<Self::TreeError>>;
fn cursor_inodes<'txn>(
        &'txn self,
        db: &Self::Inodes,
        pos: Option<(&Inode, Option<&Position<ChangeId>>)>
    ) -> Result<Cursor<Self, &'txn Self, Self::InodesCursor, Inode, Position<ChangeId>>, TxnErr<Self::TreeError>>;
fn iter_inodes(
        &self
    ) -> Result<Cursor<Self, &Self, Self::InodesCursor, Inode, Position<ChangeId>>, TxnErr<Self::TreeError>>;
fn cursor_revinodes_next<'txn>(
        &'txn self,
        cursor: &mut Self::RevinodesCursor
    ) -> Result<Option<(&'txn Position<ChangeId>, &'txn Inode)>, TxnErr<Self::TreeError>>;
fn cursor_revinodes_prev<'txn>(
        &'txn self,
        cursor: &mut Self::RevinodesCursor
    ) -> Result<Option<(&'txn Position<ChangeId>, &'txn Inode)>, TxnErr<Self::TreeError>>;
fn cursor_revinodes<'txn>(
        &'txn self,
        db: &Self::Revinodes,
        pos: Option<(&Position<ChangeId>, Option<&Inode>)>
    ) -> Result<Cursor<Self, &'txn Self, Self::RevinodesCursor, Position<ChangeId>, Inode>, TxnErr<Self::TreeError>>;
fn iter_revinodes(
        &self
    ) -> Result<Cursor<Self, &Self, Self::RevinodesCursor, Position<ChangeId>, Inode>, TxnErr<Self::TreeError>>;
fn iter_partials<'txn>(
        &'txn self,
        channel: &str
    ) -> Result<Cursor<Self, &'txn Self, Self::PartialsCursor, SmallStr, Position<ChangeId>>, TxnErr<Self::TreeError>>;
}

Associated Types

Required methods

Implementors