Trait libpijul::pristine::ChannelMutTxnT [−][src]
Required methods
fn graph_mut(channel: &mut Self::Channel) -> &mut Self::Graph
[src]
fn touch_channel(&mut self, channel: &mut Self::Channel, t: Option<u64>)
[src]
fn put_changes(
&mut self,
channel: &mut Self::Channel,
p: ChangeId,
t: ApplyTimestamp,
h: &Hash
) -> Result<Option<Merkle>, TxnErr<Self::GraphError>>
[src]
&mut self,
channel: &mut Self::Channel,
p: ChangeId,
t: ApplyTimestamp,
h: &Hash
) -> Result<Option<Merkle>, TxnErr<Self::GraphError>>
Add a change and a timestamp to a change table. Returns None
if and only if (p, t)
was already in the change table, in which case no insertion happened. Returns the new state else.
fn del_changes(
&mut self,
channel: &mut Self::Channel,
p: ChangeId,
t: ApplyTimestamp
) -> Result<bool, TxnErr<Self::GraphError>>
[src]
&mut self,
channel: &mut Self::Channel,
p: ChangeId,
t: ApplyTimestamp
) -> Result<bool, TxnErr<Self::GraphError>>
Delete a change from a change table. Returns true
if and only if (p, t)
was in the change table.
Implementors
impl ChannelMutTxnT for MutTxn<()>
[src]
fn graph_mut(c: &mut Self::Channel) -> &mut Self::Graph
[src]
fn touch_channel(&mut self, channel: &mut Self::Channel, t: Option<u64>)
[src]
fn put_changes(
&mut self,
channel: &mut Self::Channel,
p: ChangeId,
t: ApplyTimestamp,
h: &Hash
) -> Result<Option<Merkle>, TxnErr<Self::GraphError>>
[src]
&mut self,
channel: &mut Self::Channel,
p: ChangeId,
t: ApplyTimestamp,
h: &Hash
) -> Result<Option<Merkle>, TxnErr<Self::GraphError>>
fn del_changes(
&mut self,
channel: &mut Self::Channel,
p: ChangeId,
t: ApplyTimestamp
) -> Result<bool, TxnErr<Self::GraphError>>
[src]
&mut self,
channel: &mut Self::Channel,
p: ChangeId,
t: ApplyTimestamp
) -> Result<bool, TxnErr<Self::GraphError>>