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

Loading content...

Required methods

fn get_tree<'txn>(
    &'txn self,
    key: &PathId,
    value: Option<&Inode>
) -> Result<Option<&'txn Inode>, TxnErr<Self::TreeError>>
[src]

fn cursor_tree_next<'txn>(
    &'txn self,
    cursor: &mut Self::TreeCursor
) -> Result<Option<(&'txn PathId, &'txn Inode)>, TxnErr<Self::TreeError>>
[src]

fn cursor_tree_prev<'txn>(
    &'txn self,
    cursor: &mut Self::TreeCursor
) -> Result<Option<(&'txn PathId, &'txn Inode)>, TxnErr<Self::TreeError>>
[src]

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>>
[src]

fn iter_tree<'txn>(
    &'txn self,
    k: &PathId,
    v: Option<&Inode>
) -> Result<Cursor<Self, &'txn Self, Self::TreeCursor, PathId, Inode>, TxnErr<Self::TreeError>>
[src]

fn get_revtree<'txn>(
    &'txn self,
    key: &Inode,
    value: Option<&PathId>
) -> Result<Option<&'txn PathId>, TxnErr<Self::TreeError>>
[src]

fn cursor_revtree_next<'txn>(
    &'txn self,
    cursor: &mut Self::RevtreeCursor
) -> Result<Option<(&'txn Inode, &'txn PathId)>, TxnErr<Self::TreeError>>
[src]

fn cursor_revtree_prev<'txn>(
    &'txn self,
    cursor: &mut Self::RevtreeCursor
) -> Result<Option<(&'txn Inode, &'txn PathId)>, TxnErr<Self::TreeError>>
[src]

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>>
[src]

fn iter_revtree<'txn>(
    &'txn self,
    k: &Inode,
    v: Option<&PathId>
) -> Result<Cursor<Self, &'txn Self, Self::RevtreeCursor, Inode, PathId>, TxnErr<Self::TreeError>>
[src]

fn get_inodes<'txn>(
    &'txn self,
    key: &Inode,
    value: Option<&Position<ChangeId>>
) -> Result<Option<&'txn Position<ChangeId>>, TxnErr<Self::TreeError>>
[src]

fn get_revinodes<'txn>(
    &'txn self,
    key: &Position<ChangeId>,
    value: Option<&Inode>
) -> Result<Option<&'txn Inode>, TxnErr<Self::TreeError>>
[src]

fn cursor_partials_next<'txn>(
    &'txn self,
    cursor: &mut Self::PartialsCursor
) -> Result<Option<(&'txn SmallStr, &'txn Position<ChangeId>)>, TxnErr<Self::TreeError>>
[src]

fn cursor_partials_prev<'txn>(
    &'txn self,
    cursor: &mut Self::PartialsCursor
) -> Result<Option<(&'txn SmallStr, &'txn Position<ChangeId>)>, TxnErr<Self::TreeError>>
[src]

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>>
[src]

fn cursor_inodes_next<'txn>(
    &'txn self,
    cursor: &mut Self::InodesCursor
) -> Result<Option<(&'txn Inode, &'txn Position<ChangeId>)>, TxnErr<Self::TreeError>>
[src]

fn cursor_inodes_prev<'txn>(
    &'txn self,
    cursor: &mut Self::InodesCursor
) -> Result<Option<(&'txn Inode, &'txn Position<ChangeId>)>, TxnErr<Self::TreeError>>
[src]

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>>
[src]

fn iter_inodes(
    &self
) -> Result<Cursor<Self, &Self, Self::InodesCursor, Inode, Position<ChangeId>>, TxnErr<Self::TreeError>>
[src]

fn cursor_revinodes_next<'txn>(
    &'txn self,
    cursor: &mut Self::RevinodesCursor
) -> Result<Option<(&'txn Position<ChangeId>, &'txn Inode)>, TxnErr<Self::TreeError>>
[src]

fn cursor_revinodes_prev<'txn>(
    &'txn self,
    cursor: &mut Self::RevinodesCursor
) -> Result<Option<(&'txn Position<ChangeId>, &'txn Inode)>, TxnErr<Self::TreeError>>
[src]

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>>
[src]

fn iter_revinodes(
    &self
) -> Result<Cursor<Self, &Self, Self::RevinodesCursor, Position<ChangeId>, Inode>, TxnErr<Self::TreeError>>
[src]

fn iter_partials<'txn>(
    &'txn self,
    channel: &str
) -> Result<Cursor<Self, &'txn Self, Self::PartialsCursor, SmallStr, Position<ChangeId>>, TxnErr<Self::TreeError>>
[src]

Loading content...

Implementors

impl<T: LoadPage<Error = Error>> TreeTxnT for GenericTxn<T>[src]

type TreeError = SanakirjaError

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

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

type Tree = Db_<PathId, Inode, Page<PathId, Inode>>

type TreeCursor = Cursor<PathId, Inode, Page<PathId, Inode>>

type RevtreeCursor = Cursor<Inode, PathId, Page<Inode, PathId>>

type Revtree = Db_<Inode, PathId, Page<Inode, PathId>>

type Partials = Db_<SmallStr, Position<ChangeId>, Page<SmallStr, Position<ChangeId>>>

type PartialsCursor = Cursor<SmallStr, Position<ChangeId>, Page<SmallStr, Position<ChangeId>>>

type InodesCursor = Cursor<Inode, Position<ChangeId>, Page<Inode, Position<ChangeId>>>

type RevinodesCursor = Cursor<Position<ChangeId>, Inode, Page<Position<ChangeId>, Inode>>

Loading content...