[−][src]Trait libpijul::pristine::ChannelMutTxnT
Required methods
pub fn graph_mut(channel: &mut Self::Channel) -> &mut Self::Graph
[src]
pub fn touch_channel(&mut self, channel: &mut Self::Channel, t: Option<u64>)
[src]
pub 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.
pub 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]
pub fn graph_mut(c: &mut Self::Channel) -> &mut Self::Graph
[src]
pub fn touch_channel(&mut self, channel: &mut Self::Channel, t: Option<u64>)
[src]
pub 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>>
pub 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>>