[−][src]Trait libpijul::pristine::TreeTxnT
Associated Types
type TreeError: Error + Send + Sync + 'static
[src]
type Tree
[src]
type TreeCursor
[src]
type Revtree
[src]
type RevtreeCursor
[src]
type Inodes
[src]
type Revinodes
[src]
type Partials
[src]
type PartialsCursor
[src]
type InodesCursor
[src]
type RevinodesCursor
[src]
Required methods
fn get_tree<'txn>(
&'txn self,
key: PathId<'_>,
value: Option<Inode>
) -> Result<Option<Inode>, TxnErr<Self::TreeError>>
[src]
&'txn self,
key: PathId<'_>,
value: Option<Inode>
) -> Result<Option<Inode>, TxnErr<Self::TreeError>>
fn cursor_tree_next<'txn>(
&'txn self,
cursor: &mut Self::TreeCursor
) -> Result<Option<(OwnedPathId, Inode)>, TxnErr<Self::TreeError>>
[src]
&'txn self,
cursor: &mut Self::TreeCursor
) -> Result<Option<(OwnedPathId, Inode)>, TxnErr<Self::TreeError>>
fn cursor_tree_prev<'txn>(
&'txn self,
cursor: &mut Self::TreeCursor
) -> Result<Option<(OwnedPathId, Inode)>, TxnErr<Self::TreeError>>
[src]
&'txn self,
cursor: &mut Self::TreeCursor
) -> Result<Option<(OwnedPathId, Inode)>, TxnErr<Self::TreeError>>
fn cursor_tree<'txn>(
&'txn self,
db: &Self::Tree,
pos: Option<(OwnedPathId, Option<Inode>)>
) -> Result<Cursor<Self, &'txn Self, Self::TreeCursor, OwnedPathId, Inode>, TxnErr<Self::TreeError>>
[src]
&'txn self,
db: &Self::Tree,
pos: Option<(OwnedPathId, Option<Inode>)>
) -> Result<Cursor<Self, &'txn Self, Self::TreeCursor, OwnedPathId, Inode>, TxnErr<Self::TreeError>>
fn iter_tree<'txn>(
&'txn self,
k: OwnedPathId,
v: Option<Inode>
) -> Result<Cursor<Self, &'txn Self, Self::TreeCursor, OwnedPathId, Inode>, TxnErr<Self::TreeError>>
[src]
&'txn self,
k: OwnedPathId,
v: Option<Inode>
) -> Result<Cursor<Self, &'txn Self, Self::TreeCursor, OwnedPathId, Inode>, TxnErr<Self::TreeError>>
fn get_revtree<'txn>(
&'txn self,
key: Inode,
value: Option<PathId<'_>>
) -> Result<Option<PathId<'_>>, TxnErr<Self::TreeError>>
[src]
&'txn self,
key: Inode,
value: Option<PathId<'_>>
) -> Result<Option<PathId<'_>>, TxnErr<Self::TreeError>>
fn cursor_revtree_next<'txn>(
&'txn self,
cursor: &mut Self::RevtreeCursor
) -> Result<Option<(Inode, OwnedPathId)>, TxnErr<Self::TreeError>>
[src]
&'txn self,
cursor: &mut Self::RevtreeCursor
) -> Result<Option<(Inode, OwnedPathId)>, TxnErr<Self::TreeError>>
fn cursor_revtree_prev<'txn>(
&'txn self,
cursor: &mut Self::RevtreeCursor
) -> Result<Option<(Inode, OwnedPathId)>, TxnErr<Self::TreeError>>
[src]
&'txn self,
cursor: &mut Self::RevtreeCursor
) -> Result<Option<(Inode, OwnedPathId)>, TxnErr<Self::TreeError>>
fn cursor_revtree<'txn>(
&'txn self,
db: &Self::Revtree,
pos: Option<(Inode, Option<OwnedPathId>)>
) -> Result<Cursor<Self, &'txn Self, Self::RevtreeCursor, Inode, OwnedPathId>, TxnErr<Self::TreeError>>
[src]
&'txn self,
db: &Self::Revtree,
pos: Option<(Inode, Option<OwnedPathId>)>
) -> Result<Cursor<Self, &'txn Self, Self::RevtreeCursor, Inode, OwnedPathId>, TxnErr<Self::TreeError>>
fn iter_revtree<'txn>(
&'txn self,
k: Inode,
v: Option<OwnedPathId>
) -> Result<Cursor<Self, &'txn Self, Self::RevtreeCursor, Inode, OwnedPathId>, TxnErr<Self::TreeError>>
[src]
&'txn self,
k: Inode,
v: Option<OwnedPathId>
) -> Result<Cursor<Self, &'txn Self, Self::RevtreeCursor, Inode, OwnedPathId>, TxnErr<Self::TreeError>>
fn get_inodes<'txn>(
&'txn self,
key: Inode,
value: Option<Position<ChangeId>>
) -> Result<Option<Position<ChangeId>>, TxnErr<Self::TreeError>>
[src]
&'txn self,
key: Inode,
value: Option<Position<ChangeId>>
) -> Result<Option<Position<ChangeId>>, TxnErr<Self::TreeError>>
fn get_revinodes<'txn>(
&'txn self,
key: Position<ChangeId>,
value: Option<Inode>
) -> Result<Option<Inode>, TxnErr<Self::TreeError>>
[src]
&'txn self,
key: Position<ChangeId>,
value: Option<Inode>
) -> Result<Option<Inode>, TxnErr<Self::TreeError>>
fn cursor_partials_next<'txn>(
&'txn self,
cursor: &mut Self::PartialsCursor
) -> Result<Option<(SmallString, Position<ChangeId>)>, TxnErr<Self::TreeError>>
[src]
&'txn self,
cursor: &mut Self::PartialsCursor
) -> Result<Option<(SmallString, Position<ChangeId>)>, TxnErr<Self::TreeError>>
fn cursor_partials_prev<'txn>(
&'txn self,
cursor: &mut Self::PartialsCursor
) -> Result<Option<(SmallString, Position<ChangeId>)>, TxnErr<Self::TreeError>>
[src]
&'txn self,
cursor: &mut Self::PartialsCursor
) -> Result<Option<(SmallString, Position<ChangeId>)>, TxnErr<Self::TreeError>>
fn cursor_partials<'txn>(
&'txn self,
db: &Self::Partials,
pos: Option<(SmallString, Option<Position<ChangeId>>)>
) -> Result<Cursor<Self, &'txn Self, Self::PartialsCursor, SmallString, Position<ChangeId>>, TxnErr<Self::TreeError>>
[src]
&'txn self,
db: &Self::Partials,
pos: Option<(SmallString, Option<Position<ChangeId>>)>
) -> Result<Cursor<Self, &'txn Self, Self::PartialsCursor, SmallString, Position<ChangeId>>, TxnErr<Self::TreeError>>
fn cursor_inodes_next<'txn>(
&'txn self,
cursor: &mut Self::InodesCursor
) -> Result<Option<(Inode, Position<ChangeId>)>, TxnErr<Self::TreeError>>
[src]
&'txn self,
cursor: &mut Self::InodesCursor
) -> Result<Option<(Inode, Position<ChangeId>)>, TxnErr<Self::TreeError>>
fn cursor_inodes_prev<'txn>(
&'txn self,
cursor: &mut Self::InodesCursor
) -> Result<Option<(Inode, Position<ChangeId>)>, TxnErr<Self::TreeError>>
[src]
&'txn self,
cursor: &mut Self::InodesCursor
) -> Result<Option<(Inode, 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>>
[src]
&'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>>
[src]
&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<(Position<ChangeId>, Inode)>, TxnErr<Self::TreeError>>
[src]
&'txn self,
cursor: &mut Self::RevinodesCursor
) -> Result<Option<(Position<ChangeId>, Inode)>, TxnErr<Self::TreeError>>
fn cursor_revinodes_prev<'txn>(
&'txn self,
cursor: &mut Self::RevinodesCursor
) -> Result<Option<(Position<ChangeId>, Inode)>, TxnErr<Self::TreeError>>
[src]
&'txn self,
cursor: &mut Self::RevinodesCursor
) -> Result<Option<(Position<ChangeId>, 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>>
[src]
&'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>>
[src]
&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, SmallString, Position<ChangeId>>, TxnErr<Self::TreeError>>
[src]
&'txn self,
channel: &str
) -> Result<Cursor<Self, &'txn Self, Self::PartialsCursor, SmallString, Position<ChangeId>>, TxnErr<Self::TreeError>>
Implementors
impl<T: Transaction> TreeTxnT for GenericTxn<T>
[src]
type TreeError = SanakirjaError
type Inodes = Db<Inode, Position<ChangeId>>
type Revinodes = Db<Position<ChangeId>, Inode>
fn get_inodes<'txn>(
&'txn self,
key: Inode,
value: Option<Position<ChangeId>>
) -> Result<Option<Position<ChangeId>>, TxnErr<Self::TreeError>>
[src]
&'txn self,
key: Inode,
value: Option<Position<ChangeId>>
) -> Result<Option<Position<ChangeId>>, TxnErr<Self::TreeError>>
fn get_revinodes<'txn>(
&'txn self,
key: Position<ChangeId>,
value: Option<Inode>
) -> Result<Option<Inode>, TxnErr<Self::TreeError>>
[src]
&'txn self,
key: Position<ChangeId>,
value: Option<Inode>
) -> Result<Option<Inode>, TxnErr<Self::TreeError>>
type InodesCursor = Cursor
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<SanakirjaError>>
[src]
&'txn self,
db: &Self::Inodes,
pos: Option<(Inode, Option<Position<ChangeId>>)>
) -> Result<Cursor<Self, &'txn Self, Self::InodesCursor, Inode, Position<ChangeId>>, TxnErr<SanakirjaError>>
fn cursor_inodes_next<'txn>(
&'txn self,
cursor: &mut Self::InodesCursor
) -> Result<Option<(Inode, Position<ChangeId>)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::InodesCursor
) -> Result<Option<(Inode, Position<ChangeId>)>, TxnErr<SanakirjaError>>
fn cursor_inodes_prev<'txn>(
&'txn self,
cursor: &mut Self::InodesCursor
) -> Result<Option<(Inode, Position<ChangeId>)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::InodesCursor
) -> Result<Option<(Inode, Position<ChangeId>)>, TxnErr<SanakirjaError>>
type RevinodesCursor = Cursor
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<SanakirjaError>>
[src]
&'txn self,
db: &Self::Revinodes,
pos: Option<(Position<ChangeId>, Option<Inode>)>
) -> Result<Cursor<Self, &'txn Self, Self::RevinodesCursor, Position<ChangeId>, Inode>, TxnErr<SanakirjaError>>
fn cursor_revinodes_next<'txn>(
&'txn self,
cursor: &mut Self::RevinodesCursor
) -> Result<Option<(Position<ChangeId>, Inode)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::RevinodesCursor
) -> Result<Option<(Position<ChangeId>, Inode)>, TxnErr<SanakirjaError>>
fn cursor_revinodes_prev<'txn>(
&'txn self,
cursor: &mut Self::RevinodesCursor
) -> Result<Option<(Position<ChangeId>, Inode)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::RevinodesCursor
) -> Result<Option<(Position<ChangeId>, Inode)>, TxnErr<SanakirjaError>>
type Tree = Db<UnsafePathId, Inode>
fn get_tree<'txn>(
&'txn self,
key: PathId<'_>,
value: Option<Inode>
) -> Result<Option<Inode>, TxnErr<Self::TreeError>>
[src]
&'txn self,
key: PathId<'_>,
value: Option<Inode>
) -> Result<Option<Inode>, TxnErr<Self::TreeError>>
type TreeCursor = Cursor
fn cursor_tree<'txn>(
&'txn self,
db: &Self::Tree,
pos: Option<(OwnedPathId, Option<Inode>)>
) -> Result<Cursor<Self, &'txn Self, Self::TreeCursor, OwnedPathId, Inode>, TxnErr<SanakirjaError>>
[src]
&'txn self,
db: &Self::Tree,
pos: Option<(OwnedPathId, Option<Inode>)>
) -> Result<Cursor<Self, &'txn Self, Self::TreeCursor, OwnedPathId, Inode>, TxnErr<SanakirjaError>>
fn cursor_tree_next<'txn>(
&'txn self,
cursor: &mut Self::TreeCursor
) -> Result<Option<(OwnedPathId, Inode)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::TreeCursor
) -> Result<Option<(OwnedPathId, Inode)>, TxnErr<SanakirjaError>>
fn cursor_tree_prev<'txn>(
&'txn self,
cursor: &mut Self::TreeCursor
) -> Result<Option<(OwnedPathId, Inode)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::TreeCursor
) -> Result<Option<(OwnedPathId, Inode)>, TxnErr<SanakirjaError>>
fn iter_tree<'txn>(
&'txn self,
k: OwnedPathId,
v: Option<Inode>
) -> Result<Cursor<Self, &'txn Self, Self::TreeCursor, OwnedPathId, Inode>, TxnErr<SanakirjaError>>
[src]
&'txn self,
k: OwnedPathId,
v: Option<Inode>
) -> Result<Cursor<Self, &'txn Self, Self::TreeCursor, OwnedPathId, Inode>, TxnErr<SanakirjaError>>
type RevtreeCursor = Cursor
fn cursor_revtree<'txn>(
&'txn self,
db: &Self::Revtree,
pos: Option<(Inode, Option<OwnedPathId>)>
) -> Result<Cursor<Self, &'txn Self, Self::RevtreeCursor, Inode, OwnedPathId>, TxnErr<SanakirjaError>>
[src]
&'txn self,
db: &Self::Revtree,
pos: Option<(Inode, Option<OwnedPathId>)>
) -> Result<Cursor<Self, &'txn Self, Self::RevtreeCursor, Inode, OwnedPathId>, TxnErr<SanakirjaError>>
fn cursor_revtree_next<'txn>(
&'txn self,
cursor: &mut Self::RevtreeCursor
) -> Result<Option<(Inode, OwnedPathId)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::RevtreeCursor
) -> Result<Option<(Inode, OwnedPathId)>, TxnErr<SanakirjaError>>
fn cursor_revtree_prev<'txn>(
&'txn self,
cursor: &mut Self::RevtreeCursor
) -> Result<Option<(Inode, OwnedPathId)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::RevtreeCursor
) -> Result<Option<(Inode, OwnedPathId)>, TxnErr<SanakirjaError>>
fn iter_revtree<'txn>(
&'txn self,
k: Inode,
v: Option<OwnedPathId>
) -> Result<Cursor<Self, &'txn Self, Self::RevtreeCursor, Inode, OwnedPathId>, TxnErr<SanakirjaError>>
[src]
&'txn self,
k: Inode,
v: Option<OwnedPathId>
) -> Result<Cursor<Self, &'txn Self, Self::RevtreeCursor, Inode, OwnedPathId>, TxnErr<SanakirjaError>>
type Revtree = Db<Inode, UnsafePathId>
fn get_revtree<'txn>(
&'txn self,
key: Inode,
value: Option<PathId<'_>>
) -> Result<Option<PathId<'_>>, TxnErr<Self::TreeError>>
[src]
&'txn self,
key: Inode,
value: Option<PathId<'_>>
) -> Result<Option<PathId<'_>>, TxnErr<Self::TreeError>>
type Partials = Db<UnsafeSmallStr, Position<ChangeId>>
type PartialsCursor = Cursor
fn cursor_partials<'txn>(
&'txn self,
db: &Self::Partials,
pos: Option<(SmallString, Option<Position<ChangeId>>)>
) -> Result<Cursor<Self, &'txn Self, Self::PartialsCursor, SmallString, Position<ChangeId>>, TxnErr<SanakirjaError>>
[src]
&'txn self,
db: &Self::Partials,
pos: Option<(SmallString, Option<Position<ChangeId>>)>
) -> Result<Cursor<Self, &'txn Self, Self::PartialsCursor, SmallString, Position<ChangeId>>, TxnErr<SanakirjaError>>
fn cursor_partials_next<'txn>(
&'txn self,
cursor: &mut Self::PartialsCursor
) -> Result<Option<(SmallString, Position<ChangeId>)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::PartialsCursor
) -> Result<Option<(SmallString, Position<ChangeId>)>, TxnErr<SanakirjaError>>
fn cursor_partials_prev<'txn>(
&'txn self,
cursor: &mut Self::PartialsCursor
) -> Result<Option<(SmallString, Position<ChangeId>)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::PartialsCursor
) -> Result<Option<(SmallString, Position<ChangeId>)>, TxnErr<SanakirjaError>>
fn iter_inodes(
&self
) -> Result<Cursor<Self, &Self, Self::InodesCursor, Inode, Position<ChangeId>>, TxnErr<Self::TreeError>>
[src]
&self
) -> Result<Cursor<Self, &Self, Self::InodesCursor, Inode, Position<ChangeId>>, TxnErr<Self::TreeError>>
fn iter_revinodes(
&self
) -> Result<Cursor<Self, &Self, Self::RevinodesCursor, Position<ChangeId>, Inode>, TxnErr<SanakirjaError>>
[src]
&self
) -> Result<Cursor<Self, &Self, Self::RevinodesCursor, Position<ChangeId>, Inode>, TxnErr<SanakirjaError>>
fn iter_partials<'txn>(
&'txn self,
k: &str
) -> Result<Cursor<Self, &'txn Self, Self::PartialsCursor, SmallString, Position<ChangeId>>, TxnErr<SanakirjaError>>
[src]
&'txn self,
k: &str
) -> Result<Cursor<Self, &'txn Self, Self::PartialsCursor, SmallString, Position<ChangeId>>, TxnErr<SanakirjaError>>