[][src]Trait libpijul::TxnTExt

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

Notable traits for WorkingCopyIterator<'txn, T>

impl<'txn, T: TreeTxnT> Iterator for WorkingCopyIterator<'txn, T> type Item = Result<(Inode, String), T::TreeError>;
{ ... }
pub fn has_change(
        &self,
        channel: &ChannelRef<Self>,
        hash: Hash
    ) -> Result<Option<u64>, Self::GraphError> { ... }
pub fn is_alive(
        &self,
        channel: &Channel<Self>,
        a: Vertex<ChangeId>
    ) -> Result<bool, Self::GraphError> { ... }
pub fn current_state(
        &self,
        channel: &Channel<Self>
    ) -> Result<Merkle, Self::GraphError> { ... }
pub fn log<'channel, 'txn>(
        &'txn self,
        channel: &'channel Channel<Self>,
        from: u64
    ) -> Result<Log<'txn, Self>, Self::GraphError> { ... }
pub fn log_for_path<'channel, 'txn>(
        &'txn self,
        channel: &'channel Channel<Self>,
        pos: Position<ChangeId>,
        from: u64
    ) -> Result<PathChangeset<'channel, 'txn, Self>, Self::GraphError> { ... }
pub fn rev_log_for_path<'channel, 'txn>(
        &'txn self,
        channel: &'channel Channel<Self>,
        pos: Position<ChangeId>,
        from: u64
    ) -> Result<RevPathChangeset<'channel, 'txn, Self>, Self::DepsError> { ... }
pub fn reverse_log<'channel, 'txn>(
        &'txn self,
        channel: &'channel Channel<Self>,
        from: Option<u64>
    ) -> Result<RevLog<'txn, Self>, Self::GraphError> { ... }
pub fn changeid_reverse_log<'txn>(
        &'txn self,
        channel: &Channel<Self>,
        from: Option<u64>
    ) -> Result<RevCursor<Self, &'txn Self, Self::RevchangesetCursor, u64, (ChangeId, Merkle)>, Self::GraphError> { ... }
pub fn get_changes(
        &self,
        channel: &ChannelRef<Self>,
        n: u64
    ) -> Result<Option<(Hash, Merkle)>, Self::GraphError> { ... }
pub fn get_revchanges(
        &self,
        channel: &ChannelRef<Self>,
        h: Hash
    ) -> Result<Option<u64>, Self::GraphError> { ... }
pub fn touched_files(
        &self,
        h: Hash
    ) -> Result<Option<Touched<'_, Self>>, Self::DepsError> { ... }
pub fn find_oldest_path<C: ChangeStore>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        position: Position<Hash>
    ) -> Result<(String, bool), FileError<C::Error, Self::GraphError>> { ... }
pub fn find_youngest_path<C: ChangeStore>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        position: Position<Hash>
    ) -> Result<(String, bool), FileError<C::Error, Self::GraphError>> { ... }
pub fn follow_oldest_path<C: ChangeStore>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        path: &str
    ) -> Result<(Position<ChangeId>, bool), FsErrorC<C::Error, Self::GraphError>> { ... }
pub fn output_file<C: ChangeStore, V: VertexBuffer>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        v0: Position<ChangeId>,
        out: &mut V
    ) -> Result<(), FileError<C::Error, Self::GraphError>> { ... }
pub fn archive<C: ChangeStore, A: Archive>(
        &self,
        changes: &C,
        channel: &ChannelRef<Self>,
        arch: &mut A
    ) -> Result<Vec<Conflict>, ArchiveError<C::Error, Self::GraphError, A::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>, ArchiveError<C::Error, Self::GraphError, A::Error>> { ... }
pub fn iter_adjacent<'db, 'txn: 'db>(
        &'txn self,
        graph: &'db Channel<Self>,
        key: Vertex<ChangeId>,
        min_flag: EdgeFlags,
        max_flag: EdgeFlags
    ) -> Result<AdjacentIterator<'txn, Self>, TxnErr<Self::GraphError>> { ... } }

Provided methods

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

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

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

Notable traits for WorkingCopyIterator<'txn, T>

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

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

pub fn is_alive(
    &self,
    channel: &Channel<Self>,
    a: Vertex<ChangeId>
) -> Result<bool, Self::GraphError>
[src]

pub fn current_state(
    &self,
    channel: &Channel<Self>
) -> Result<Merkle, Self::GraphError>
[src]

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

pub fn log_for_path<'channel, 'txn>(
    &'txn self,
    channel: &'channel Channel<Self>,
    pos: Position<ChangeId>,
    from: u64
) -> Result<PathChangeset<'channel, 'txn, Self>, Self::GraphError>
[src]

pub fn rev_log_for_path<'channel, 'txn>(
    &'txn self,
    channel: &'channel Channel<Self>,
    pos: Position<ChangeId>,
    from: u64
) -> Result<RevPathChangeset<'channel, 'txn, Self>, Self::DepsError>
[src]

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

pub fn changeid_reverse_log<'txn>(
    &'txn self,
    channel: &Channel<Self>,
    from: Option<u64>
) -> Result<RevCursor<Self, &'txn Self, Self::RevchangesetCursor, u64, (ChangeId, Merkle)>, Self::GraphError>
[src]

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

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

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

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

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

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

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

pub fn archive<C: ChangeStore, A: Archive>(
    &self,
    changes: &C,
    channel: &ChannelRef<Self>,
    arch: &mut A
) -> Result<Vec<Conflict>, ArchiveError<C::Error, Self::GraphError, A::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>, ArchiveError<C::Error, Self::GraphError, A::Error>>
[src]

pub fn iter_adjacent<'db, 'txn: 'db>(
    &'txn self,
    graph: &'db Channel<Self>,
    key: Vertex<ChangeId>,
    min_flag: EdgeFlags,
    max_flag: EdgeFlags
) -> Result<AdjacentIterator<'txn, Self>, TxnErr<Self::GraphError>>
[src]

Loading content...

Implementors

impl TxnTExt for MutTxn<()>[src]

impl TxnTExt for Txn[src]

Loading content...