[][src]Trait libanu::TxnTExt

pub trait TxnTExt: TxnT {
    fn is_directory(&self, inode: Inode) -> bool { ... }
fn is_tracked(&self, path: &str) -> bool { ... }
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);
{ ... }
fn has_change(&self, channel: &ChannelRef<Self>, hash: Hash) -> Option<u64> { ... }
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));
{ ... }
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));
{ ... }
fn get_changes(
        &self,
        channel: &ChannelRef<Self>,
        n: u64
    ) -> Option<(Hash, Merkle)> { ... }
fn get_revchanges(&self, channel: &ChannelRef<Self>, h: Hash) -> Option<u64> { ... }
fn touched_files<'txn>(&'txn self, h: Hash) -> Option<Touched<'txn, Self>> { ... }
fn find_oldest_path<C: ChangeStore>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        position: Position<Hash>
    ) -> Result<(String, bool), Error> { ... }
fn find_youngest_path<C: ChangeStore>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        position: Position<Hash>
    ) -> Result<(String, bool), Error> { ... }
fn follow_oldest_path<C: ChangeStore>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        path: &str
    ) -> Result<(Position<ChangeId>, bool), Error> { ... }
fn output_file<C: ChangeStore, V: VertexBuffer>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        v0: Position<ChangeId>,
        out: &mut V
    ) -> Result<(), Error> { ... }
fn archive<'a, C: ChangeStore, A: Archive>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        arch: &mut A
    ) -> Result<Vec<Conflict>, Error> { ... }
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

fn is_directory(&self, inode: Inode) -> bool

fn is_tracked(&self, path: &str) -> bool

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);

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

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));

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));

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

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

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

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

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

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

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

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

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>

Loading content...

Implementors

impl TxnTExt for MutTxn<()>[src]

impl TxnTExt for Txn[src]

Loading content...