[][src]Trait libpijul::TxnTExt

pub trait TxnTExt: TxnT {
    pub fn is_directory(&self, inode: Inode) -> bool { ... }
pub fn is_tracked(&self, path: &str) -> bool { ... }
pub fn iter_working_copy<'txn>(
        &'txn self
    ) -> WorkingCopyIterator<'txn, Self>

Notable traits for WorkingCopyIterator<'txn, T>

impl<'txn, T: TxnT> Iterator for WorkingCopyIterator<'txn, T> type Item = (Inode, String);
{ ... }
pub fn has_change(
        &self,
        channel: &ChannelRef<Self>,
        hash: Hash
    ) -> Option<u64> { ... }
pub fn log<'channel, 'txn>(
        &'txn self,
        channel: &'channel Channel<Self>,
        from: u64
    ) -> Log<'txn, Self>

Notable traits for Log<'txn, T>

impl<'txn, T: TxnT> Iterator for Log<'txn, T> type Item = (u64, (Hash, Merkle));
{ ... }
pub fn reverse_log<'channel, 'txn>(
        &'txn self,
        channel: &'channel Channel<Self>,
        from: Option<u64>
    ) -> RevLog<'txn, Self>

Notable traits for RevLog<'txn, T>

impl<'txn, T: TxnT> Iterator for RevLog<'txn, T> type Item = (u64, (Hash, Merkle));
{ ... }
pub fn get_changes(
        &self,
        channel: &ChannelRef<Self>,
        n: u64
    ) -> Option<(Hash, Merkle)> { ... }
pub fn get_revchanges(
        &self,
        channel: &ChannelRef<Self>,
        h: Hash
    ) -> Option<u64> { ... }
pub fn touched_files<'txn>(
        &'txn self,
        h: Hash
    ) -> Option<Touched<'txn, Self>> { ... }
pub fn find_oldest_path<C: ChangeStore>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        position: Position<Hash>
    ) -> Result<(String, bool), Error> { ... }
pub fn find_youngest_path<C: ChangeStore>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        position: Position<Hash>
    ) -> Result<(String, bool), Error> { ... }
pub fn follow_oldest_path<C: ChangeStore>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        path: &str
    ) -> Result<(Position<ChangeId>, bool), Error> { ... }
pub fn output_file<C: ChangeStore, V: VertexBuffer>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        v0: Position<ChangeId>,
        out: &mut V
    ) -> Result<(), Error> { ... }
pub fn archive<'a, C: ChangeStore, A: Archive>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        arch: &mut A
    ) -> Result<Vec<Conflict>, Error> { ... }
pub fn archive_prefix<'a, C: ChangeStore, I: Iterator<Item = &'a str>, A: Archive>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        prefix: &mut I,
        arch: &mut A
    ) -> Result<Vec<Conflict>, Error> { ... } }

Provided methods

pub fn is_directory(&self, inode: Inode) -> bool[src]

pub fn is_tracked(&self, path: &str) -> bool[src]

pub fn iter_working_copy<'txn>(&'txn self) -> WorkingCopyIterator<'txn, Self>

Notable traits for WorkingCopyIterator<'txn, T>

impl<'txn, T: TxnT> Iterator for WorkingCopyIterator<'txn, T> type Item = (Inode, String);
[src]

pub fn has_change(&self, channel: &ChannelRef<Self>, hash: Hash) -> Option<u64>[src]

pub fn log<'channel, 'txn>(
    &'txn self,
    channel: &'channel Channel<Self>,
    from: u64
) -> Log<'txn, Self>

Notable traits for Log<'txn, T>

impl<'txn, T: TxnT> Iterator for Log<'txn, T> type Item = (u64, (Hash, Merkle));
[src]

pub fn reverse_log<'channel, 'txn>(
    &'txn self,
    channel: &'channel Channel<Self>,
    from: Option<u64>
) -> RevLog<'txn, Self>

Notable traits for RevLog<'txn, T>

impl<'txn, T: TxnT> Iterator for RevLog<'txn, T> type Item = (u64, (Hash, Merkle));
[src]

pub fn get_changes(
    &self,
    channel: &ChannelRef<Self>,
    n: u64
) -> Option<(Hash, Merkle)>
[src]

pub fn get_revchanges(&self, channel: &ChannelRef<Self>, h: Hash) -> Option<u64>[src]

pub fn touched_files<'txn>(&'txn self, h: Hash) -> Option<Touched<'txn, Self>>[src]

pub fn find_oldest_path<C: ChangeStore>(
    &self,
    changes: &C,
    channel: &ChannelRef<Self>,
    position: Position<Hash>
) -> Result<(String, bool), Error>
[src]

pub fn find_youngest_path<C: ChangeStore>(
    &self,
    changes: &C,
    channel: &ChannelRef<Self>,
    position: Position<Hash>
) -> Result<(String, bool), Error>
[src]

pub fn follow_oldest_path<C: ChangeStore>(
    &self,
    changes: &C,
    channel: &ChannelRef<Self>,
    path: &str
) -> Result<(Position<ChangeId>, bool), Error>
[src]

pub fn output_file<C: ChangeStore, V: VertexBuffer>(
    &self,
    changes: &C,
    channel: &ChannelRef<Self>,
    v0: Position<ChangeId>,
    out: &mut V
) -> Result<(), Error>
[src]

pub fn archive<'a, C: ChangeStore, A: Archive>(
    &self,
    changes: &C,
    channel: &ChannelRef<Self>,
    arch: &mut A
) -> Result<Vec<Conflict>, Error>
[src]

pub fn archive_prefix<'a, C: ChangeStore, I: Iterator<Item = &'a str>, A: Archive>(
    &self,
    changes: &C,
    channel: &ChannelRef<Self>,
    prefix: &mut I,
    arch: &mut A
) -> Result<Vec<Conflict>, Error>
[src]

Loading content...

Implementors

impl TxnTExt for MutTxn<()>[src]

impl TxnTExt for Txn[src]

Loading content...