[−][src]Trait libanu::MutTxnTExt
Provided methods
fn apply_change_ws<C: ChangeStore>(
&mut self,
changes: &C,
channel: &mut ChannelRef<Self>,
hash: Hash,
workspace: &mut ApplyWorkspace
) -> Result<(u64, Merkle), Error>
&mut self,
changes: &C,
channel: &mut ChannelRef<Self>,
hash: Hash,
workspace: &mut ApplyWorkspace
) -> Result<(u64, Merkle), Error>
fn apply_change_rec_ws<C: ChangeStore>(
&mut self,
changes: &C,
channel: &mut ChannelRef<Self>,
hash: Hash,
workspace: &mut ApplyWorkspace
) -> Result<(), Error>
&mut self,
changes: &C,
channel: &mut ChannelRef<Self>,
hash: Hash,
workspace: &mut ApplyWorkspace
) -> Result<(), Error>
fn apply_change<C: ChangeStore>(
&mut self,
changes: &C,
channel: &mut ChannelRef<Self>,
hash: Hash
) -> Result<(u64, Merkle), Error>
&mut self,
changes: &C,
channel: &mut ChannelRef<Self>,
hash: Hash
) -> Result<(u64, Merkle), Error>
fn apply_change_rec<C: ChangeStore>(
&mut self,
changes: &C,
channel: &mut ChannelRef<Self>,
hash: Hash
) -> Result<(), Error>
&mut self,
changes: &C,
channel: &mut ChannelRef<Self>,
hash: Hash
) -> Result<(), Error>
fn apply_deps_rec<C: ChangeStore>(
&mut self,
changes: &C,
channel: &mut ChannelRef<Self>,
hash: Hash
) -> Result<(), Error>
&mut self,
changes: &C,
channel: &mut ChannelRef<Self>,
hash: Hash
) -> Result<(), Error>
fn apply_local_change_ws(
&mut self,
channel: &mut ChannelRef<Self>,
change: &Change3,
hash: Hash,
inode_updates: &HashMap<usize, InodeUpdate>,
workspace: &mut ApplyWorkspace
) -> Result<(u64, Merkle), Error>
&mut self,
channel: &mut ChannelRef<Self>,
change: &Change3,
hash: Hash,
inode_updates: &HashMap<usize, InodeUpdate>,
workspace: &mut ApplyWorkspace
) -> Result<(u64, Merkle), Error>
fn apply_local_change(
&mut self,
channel: &mut ChannelRef<Self>,
change: &Change3,
hash: Hash,
inode_updates: &HashMap<usize, InodeUpdate>
) -> Result<(u64, Merkle), Error>
&mut self,
channel: &mut ChannelRef<Self>,
change: &Change3,
hash: Hash,
inode_updates: &HashMap<usize, InodeUpdate>
) -> Result<(u64, Merkle), Error>
fn record<W: WorkingCopy, C: ChangeStore>(
&mut self,
builder: &mut RecordBuilder,
diff_algorithm: Algorithm,
channel: &mut ChannelRef<Self>,
working_copy: &mut W,
changes: &C,
prefix: &str
) -> Result<(), Error>
&mut self,
builder: &mut RecordBuilder,
diff_algorithm: Algorithm,
channel: &mut ChannelRef<Self>,
working_copy: &mut W,
changes: &C,
prefix: &str
) -> Result<(), Error>
fn record_all<W: WorkingCopy, C: ChangeStore>(
&mut self,
diff_algorithm: Algorithm,
channel: &mut ChannelRef<Self>,
working_copy: &mut W,
changes: &C,
prefix: &str
) -> Result<Recorded, Error>
&mut self,
diff_algorithm: Algorithm,
channel: &mut ChannelRef<Self>,
working_copy: &mut W,
changes: &C,
prefix: &str
) -> Result<Recorded, Error>
fn apply_recorded<C: ChangeStore>(
&mut self,
channel: &mut ChannelRef<Self>,
recorded: Recorded,
changestore: &C
) -> Result<Hash, Error>
&mut self,
channel: &mut ChannelRef<Self>,
recorded: Recorded,
changestore: &C
) -> Result<Hash, Error>
fn unrecord<C: ChangeStore>(
&mut self,
changes: &C,
channel: &mut ChannelRef<Self>,
hash: &Hash
) -> Result<bool, Error>
&mut self,
changes: &C,
channel: &mut ChannelRef<Self>,
hash: &Hash
) -> Result<bool, Error>
fn output_repository_no_pending<R: WorkingCopy, C: ChangeStore>(
&mut self,
repo: &mut R,
changes: &C,
channel: &mut ChannelRef<Self>,
prefix: &str,
output_name_conflicts: bool
) -> Result<Vec<Conflict>, Error>
&mut self,
repo: &mut R,
changes: &C,
channel: &mut ChannelRef<Self>,
prefix: &str,
output_name_conflicts: bool
) -> Result<Vec<Conflict>, Error>
fn add_file(&mut self, path: &str) -> Result<(), Error>
Register a file in the working copy, where the file is given by
its path from the root of the repository, where the components of
the path are separated by /
(example path: a/b/c
).
fn add_dir(&mut self, path: &str) -> Result<(), Error>
Register a directory in the working copy, where the directory is
given by its path from the root of the repository, where the
components of the path are separated by /
(example path:
a/b/c
).
fn add(&mut self, path: &str, is_dir: bool) -> Result<(), Error>
Register a file or directory in the working copy, given by its
path from the root of the repository, where the components of the
path are separated by /
(example path: a/b/c
).
fn move_file(&mut self, a: &str, b: &str) -> Result<(), Error>
fn remove_file(&mut self, a: &str) -> Result<(), Error>
fn channel_from_dump<'a>(
&'a mut self,
name: &str
) -> Result<ChannelFromDump<'a, Self>, Error>
&'a mut self,
name: &str
) -> Result<ChannelFromDump<'a, Self>, Error>
fn archive_with_state<'a, P: ChangeStore, A: Archive>(
&mut self,
changes: &P,
channel: &mut ChannelRef<Self>,
state: Merkle,
extra: &[Hash],
arch: &mut A
) -> Result<Vec<Conflict>, Error>
&mut self,
changes: &P,
channel: &mut ChannelRef<Self>,
state: Merkle,
extra: &[Hash],
arch: &mut A
) -> Result<Vec<Conflict>, Error>
fn archive_prefix_with_state<'a, P: ChangeStore, A: Archive, I: Iterator<Item = &'a str>>(
&mut self,
changes: &P,
channel: &mut ChannelRef<Self>,
state: Merkle,
extra: &[Hash],
prefix: &mut I,
arch: &mut A
) -> Result<Vec<Conflict>, Error>
&mut self,
changes: &P,
channel: &mut ChannelRef<Self>,
state: Merkle,
extra: &[Hash],
prefix: &mut I,
arch: &mut A
) -> Result<Vec<Conflict>, Error>
Warning: this method unrecords changes until finding the state. If this is not wanted, please fork the channel before calling.