[−][src]Trait libpijul::pristine::TxnT
The trait of immutable transactions.
Associated Types
type Channels
[src]
type ChannelsCursor
[src]
type Remotes
[src]
type RemotesCursor
[src]
type Remote
[src]
type Revremote
[src]
type Remotestates
[src]
type RemoteCursor
[src]
Required methods
pub fn cursor_channels_next<'txn>(
&'txn self,
cursor: &mut Self::ChannelsCursor
) -> Result<Option<(SmallString, (u64, u64, u64, u64, u64, u64))>, TxnErr<Self::GraphError>>
[src]
&'txn self,
cursor: &mut Self::ChannelsCursor
) -> Result<Option<(SmallString, (u64, u64, u64, u64, u64, u64))>, TxnErr<Self::GraphError>>
pub fn cursor_channels_prev<'txn>(
&'txn self,
cursor: &mut Self::ChannelsCursor
) -> Result<Option<(SmallString, (u64, u64, u64, u64, u64, u64))>, TxnErr<Self::GraphError>>
[src]
&'txn self,
cursor: &mut Self::ChannelsCursor
) -> Result<Option<(SmallString, (u64, u64, u64, u64, u64, u64))>, TxnErr<Self::GraphError>>
pub fn cursor_channels<'txn>(
&'txn self,
db: &Self::Channels,
pos: Option<(SmallString, Option<(u64, u64, u64, u64, u64, u64)>)>
) -> Result<Cursor<Self, &'txn Self, Self::ChannelsCursor, SmallString, (u64, u64, u64, u64, u64, u64)>, TxnErr<Self::GraphError>>
[src]
&'txn self,
db: &Self::Channels,
pos: Option<(SmallString, Option<(u64, u64, u64, u64, u64, u64)>)>
) -> Result<Cursor<Self, &'txn Self, Self::ChannelsCursor, SmallString, (u64, u64, u64, u64, u64, u64)>, TxnErr<Self::GraphError>>
pub fn hash_from_prefix(
&self,
prefix: &str
) -> Result<(Hash, ChangeId), HashPrefixError<Self::GraphError>>
[src]
&self,
prefix: &str
) -> Result<(Hash, ChangeId), HashPrefixError<Self::GraphError>>
pub fn hash_from_prefix_remote(
&self,
remote: &RemoteRef<Self>,
prefix: &str
) -> Result<Hash, HashPrefixError<Self::GraphError>>
[src]
&self,
remote: &RemoteRef<Self>,
prefix: &str
) -> Result<Hash, HashPrefixError<Self::GraphError>>
pub fn load_channel(
&self,
name: &str
) -> Result<Option<ChannelRef<Self>>, TxnErr<Self::GraphError>>
[src]
&self,
name: &str
) -> Result<Option<ChannelRef<Self>>, TxnErr<Self::GraphError>>
pub fn load_remote(
&self,
name: &str
) -> Result<Option<RemoteRef<Self>>, TxnErr<Self::GraphError>>
[src]
&self,
name: &str
) -> Result<Option<RemoteRef<Self>>, TxnErr<Self::GraphError>>
pub fn iter_channels<'txn>(
&'txn self,
start: &str
) -> Result<ChannelIterator<'txn, Self>, TxnErr<Self::GraphError>>
[src]
&'txn self,
start: &str
) -> Result<ChannelIterator<'txn, Self>, TxnErr<Self::GraphError>>
Iterate a function over all channels. The loop stops the first
time f
returns false
.
pub fn iter_remotes<'txn>(
&'txn self,
start: &str
) -> Result<RemotesIterator<'txn, Self>, TxnErr<Self::GraphError>>
[src]
&'txn self,
start: &str
) -> Result<RemotesIterator<'txn, Self>, TxnErr<Self::GraphError>>
pub fn cursor_remotes_next<'txn>(
&'txn self,
cursor: &mut Self::RemotesCursor
) -> Result<Option<(SmallString, (u64, u64, u64))>, TxnErr<Self::GraphError>>
[src]
&'txn self,
cursor: &mut Self::RemotesCursor
) -> Result<Option<(SmallString, (u64, u64, u64))>, TxnErr<Self::GraphError>>
pub fn cursor_remotes_prev<'txn>(
&'txn self,
cursor: &mut Self::RemotesCursor
) -> Result<Option<(SmallString, (u64, u64, u64))>, TxnErr<Self::GraphError>>
[src]
&'txn self,
cursor: &mut Self::RemotesCursor
) -> Result<Option<(SmallString, (u64, u64, u64))>, TxnErr<Self::GraphError>>
pub fn cursor_remotes<'txn>(
&'txn self,
db: &Self::Remotes,
pos: Option<(SmallString, Option<(u64, u64, u64)>)>
) -> Result<Cursor<Self, &'txn Self, Self::RemotesCursor, SmallString, (u64, u64, u64)>, TxnErr<Self::GraphError>>
[src]
&'txn self,
db: &Self::Remotes,
pos: Option<(SmallString, Option<(u64, u64, u64)>)>
) -> Result<Cursor<Self, &'txn Self, Self::RemotesCursor, SmallString, (u64, u64, u64)>, TxnErr<Self::GraphError>>
pub fn cursor_remote_next<'txn>(
&'txn self,
cursor: &mut Self::RemoteCursor
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<Self::GraphError>>
[src]
&'txn self,
cursor: &mut Self::RemoteCursor
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<Self::GraphError>>
pub fn cursor_remote_prev<'txn>(
&'txn self,
cursor: &mut Self::RemoteCursor
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<Self::GraphError>>
[src]
&'txn self,
cursor: &mut Self::RemoteCursor
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<Self::GraphError>>
pub fn cursor_remote<'txn>(
&'txn self,
db: &Self::Remote,
pos: Option<(u64, Option<(Hash, Merkle)>)>
) -> Result<Cursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<Self::GraphError>>
[src]
&'txn self,
db: &Self::Remote,
pos: Option<(u64, Option<(Hash, Merkle)>)>
) -> Result<Cursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<Self::GraphError>>
pub fn rev_cursor_remote<'txn>(
&'txn self,
db: &Self::Remote,
pos: Option<(u64, Option<(Hash, Merkle)>)>
) -> Result<RevCursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<Self::GraphError>>
[src]
&'txn self,
db: &Self::Remote,
pos: Option<(u64, Option<(Hash, Merkle)>)>
) -> Result<RevCursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<Self::GraphError>>
pub fn iter_remote<'txn>(
&'txn self,
remote: &Self::Remote,
k: u64
) -> Result<Cursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<Self::GraphError>>
[src]
&'txn self,
remote: &Self::Remote,
k: u64
) -> Result<Cursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<Self::GraphError>>
pub fn iter_rev_remote<'txn>(
&'txn self,
remote: &Self::Remote,
k: Option<u64>
) -> Result<RevCursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<Self::GraphError>>
[src]
&'txn self,
remote: &Self::Remote,
k: Option<u64>
) -> Result<RevCursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<Self::GraphError>>
pub fn get_remote(
&mut self,
name: &str
) -> Result<Option<RemoteRef<Self>>, TxnErr<Self::GraphError>>
[src]
&mut self,
name: &str
) -> Result<Option<RemoteRef<Self>>, TxnErr<Self::GraphError>>
pub fn last_remote(
&self,
remote: &Self::Remote
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<Self::GraphError>>
[src]
&self,
remote: &Self::Remote
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<Self::GraphError>>
pub fn get_remote_state(
&self,
remote: &Self::Remote,
n: u64
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<Self::GraphError>>
[src]
&self,
remote: &Self::Remote,
n: u64
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<Self::GraphError>>
pub fn remote_has_change(
&self,
remote: &RemoteRef<Self>,
hash: Hash
) -> Result<bool, TxnErr<Self::GraphError>>
[src]
&self,
remote: &RemoteRef<Self>,
hash: Hash
) -> Result<bool, TxnErr<Self::GraphError>>
pub fn remote_has_state(
&self,
remote: &RemoteRef<Self>,
hash: Merkle
) -> Result<bool, TxnErr<Self::GraphError>>
[src]
&self,
remote: &RemoteRef<Self>,
hash: Merkle
) -> Result<bool, TxnErr<Self::GraphError>>
Implementors
impl<T: Transaction> TxnT for GenericTxn<T>
[src]
pub fn hash_from_prefix(
&self,
s: &str
) -> Result<(Hash, ChangeId), HashPrefixError<Self::GraphError>>
[src]
&self,
s: &str
) -> Result<(Hash, ChangeId), HashPrefixError<Self::GraphError>>
pub fn hash_from_prefix_remote<'txn>(
&'txn self,
remote: &RemoteRef<Self>,
s: &str
) -> Result<Hash, HashPrefixError<Self::GraphError>>
[src]
&'txn self,
remote: &RemoteRef<Self>,
s: &str
) -> Result<Hash, HashPrefixError<Self::GraphError>>
pub fn load_channel(
&self,
name: &str
) -> Result<Option<ChannelRef<Self>>, TxnErr<Self::GraphError>>
[src]
&self,
name: &str
) -> Result<Option<ChannelRef<Self>>, TxnErr<Self::GraphError>>
pub fn load_remote(
&self,
name: &str
) -> Result<Option<RemoteRef<Self>>, TxnErr<Self::GraphError>>
[src]
&self,
name: &str
) -> Result<Option<RemoteRef<Self>>, TxnErr<Self::GraphError>>
type Channels = Db<UnsafeSmallStr, (u64, u64, u64, u64, u64, u64)>
type ChannelsCursor = Cursor
pub fn cursor_channels<'txn>(
&'txn self,
db: &Self::Channels,
pos: Option<(SmallString, Option<(u64, u64, u64, u64, u64, u64)>)>
) -> Result<Cursor<Self, &'txn Self, Self::ChannelsCursor, SmallString, (u64, u64, u64, u64, u64, u64)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
db: &Self::Channels,
pos: Option<(SmallString, Option<(u64, u64, u64, u64, u64, u64)>)>
) -> Result<Cursor<Self, &'txn Self, Self::ChannelsCursor, SmallString, (u64, u64, u64, u64, u64, u64)>, TxnErr<SanakirjaError>>
pub fn cursor_channels_next<'txn>(
&'txn self,
cursor: &mut Self::ChannelsCursor
) -> Result<Option<(SmallString, (u64, u64, u64, u64, u64, u64))>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::ChannelsCursor
) -> Result<Option<(SmallString, (u64, u64, u64, u64, u64, u64))>, TxnErr<SanakirjaError>>
pub fn cursor_channels_prev<'txn>(
&'txn self,
cursor: &mut Self::ChannelsCursor
) -> Result<Option<(SmallString, (u64, u64, u64, u64, u64, u64))>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::ChannelsCursor
) -> Result<Option<(SmallString, (u64, u64, u64, u64, u64, u64))>, TxnErr<SanakirjaError>>
pub fn iter_channels<'txn>(
&'txn self,
start: &str
) -> Result<ChannelIterator<'txn, Self>, TxnErr<Self::GraphError>>
[src]
&'txn self,
start: &str
) -> Result<ChannelIterator<'txn, Self>, TxnErr<Self::GraphError>>
type Remotes = Db<UnsafeSmallStr, (u64, u64, u64)>
type RemotesCursor = Cursor
pub fn cursor_remotes<'txn>(
&'txn self,
db: &Self::Remotes,
pos: Option<(SmallString, Option<(u64, u64, u64)>)>
) -> Result<Cursor<Self, &'txn Self, Self::RemotesCursor, SmallString, (u64, u64, u64)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
db: &Self::Remotes,
pos: Option<(SmallString, Option<(u64, u64, u64)>)>
) -> Result<Cursor<Self, &'txn Self, Self::RemotesCursor, SmallString, (u64, u64, u64)>, TxnErr<SanakirjaError>>
pub fn cursor_remotes_next<'txn>(
&'txn self,
cursor: &mut Self::RemotesCursor
) -> Result<Option<(SmallString, (u64, u64, u64))>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::RemotesCursor
) -> Result<Option<(SmallString, (u64, u64, u64))>, TxnErr<SanakirjaError>>
pub fn cursor_remotes_prev<'txn>(
&'txn self,
cursor: &mut Self::RemotesCursor
) -> Result<Option<(SmallString, (u64, u64, u64))>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::RemotesCursor
) -> Result<Option<(SmallString, (u64, u64, u64))>, TxnErr<SanakirjaError>>
pub fn iter_remotes<'txn>(
&'txn self,
start: &str
) -> Result<RemotesIterator<'txn, Self>, TxnErr<Self::GraphError>>
[src]
&'txn self,
start: &str
) -> Result<RemotesIterator<'txn, Self>, TxnErr<Self::GraphError>>
type Remote = Db<u64, (Hash, Merkle)>
type Revremote = Db<Hash, u64>
type Remotestates = Db<Merkle, u64>
type RemoteCursor = Cursor
pub fn cursor_remote<'txn>(
&'txn self,
db: &Self::Remote,
pos: Option<(u64, Option<(Hash, Merkle)>)>
) -> Result<Cursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
db: &Self::Remote,
pos: Option<(u64, Option<(Hash, Merkle)>)>
) -> Result<Cursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<SanakirjaError>>
pub fn cursor_remote_next<'txn>(
&'txn self,
cursor: &mut Self::RemoteCursor
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::RemoteCursor
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<SanakirjaError>>
pub fn cursor_remote_prev<'txn>(
&'txn self,
cursor: &mut Self::RemoteCursor
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<SanakirjaError>>
[src]
&'txn self,
cursor: &mut Self::RemoteCursor
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<SanakirjaError>>
pub fn rev_cursor_remote<'txn>(
&'txn self,
db: &Self::Remote,
pos: Option<(u64, Option<(Hash, Merkle)>)>
) -> Result<RevCursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<SanakirjaError>>
[src]
&'txn self,
db: &Self::Remote,
pos: Option<(u64, Option<(Hash, Merkle)>)>
) -> Result<RevCursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<SanakirjaError>>
pub fn iter_remote<'txn>(
&'txn self,
remote: &Self::Remote,
k: u64
) -> Result<Cursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<Self::GraphError>>
[src]
&'txn self,
remote: &Self::Remote,
k: u64
) -> Result<Cursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<Self::GraphError>>
pub fn iter_rev_remote<'txn>(
&'txn self,
remote: &Self::Remote,
k: Option<u64>
) -> Result<RevCursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<Self::GraphError>>
[src]
&'txn self,
remote: &Self::Remote,
k: Option<u64>
) -> Result<RevCursor<Self, &'txn Self, Self::RemoteCursor, u64, (Hash, Merkle)>, TxnErr<Self::GraphError>>
pub fn get_remote(
&mut self,
name: &str
) -> Result<Option<RemoteRef<Self>>, TxnErr<Self::GraphError>>
[src]
&mut self,
name: &str
) -> Result<Option<RemoteRef<Self>>, TxnErr<Self::GraphError>>
pub fn last_remote(
&self,
remote: &Self::Remote
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<Self::GraphError>>
[src]
&self,
remote: &Self::Remote
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<Self::GraphError>>
pub fn get_remote_state(
&self,
remote: &Self::Remote,
n: u64
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<Self::GraphError>>
[src]
&self,
remote: &Self::Remote,
n: u64
) -> Result<Option<(u64, (Hash, Merkle))>, TxnErr<Self::GraphError>>
pub fn remote_has_change(
&self,
remote: &RemoteRef<Self>,
hash: Hash
) -> Result<bool, TxnErr<Self::GraphError>>
[src]
&self,
remote: &RemoteRef<Self>,
hash: Hash
) -> Result<bool, TxnErr<Self::GraphError>>
pub fn remote_has_state(
&self,
remote: &RemoteRef<Self>,
m: Merkle
) -> Result<bool, TxnErr<Self::GraphError>>
[src]
&self,
remote: &RemoteRef<Self>,
m: Merkle
) -> Result<bool, TxnErr<Self::GraphError>>