[][src]Trait libpijul::pristine::ChannelMutTxnT

pub trait ChannelMutTxnT: ChannelTxnT + GraphMutTxnT {
    pub fn graph_mut(channel: &mut Self::Channel) -> &mut Self::Graph;
pub fn touch_channel(&mut self, channel: &mut Self::Channel, t: Option<u64>);
pub fn put_changes(
        &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>>; }

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]

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]

Delete a change from a change table. Returns true if and only if (p, t) was in the change table.

Loading content...

Implementors

impl ChannelMutTxnT for MutTxn<()>[src]

Loading content...