pub struct TransferComplete {
pub inner: OperationComplete,
pub completed: Vec<(PathBuf, PathBuf)>,
pub replaced: Vec<(PathBuf, PathBuf)>,
}Expand description
Completion of a copy or move.
Fields§
§inner: OperationComplete§completed: Vec<(PathBuf, PathBuf)>(source, destination) for every item published at a previously free
destination. Overwrites are excluded: they cannot be undone by deleting
or moving the new item back.
replaced: Vec<(PathBuf, PathBuf)>(source, destination) for every item that replaced an existing one.
Implementations§
Source§impl TransferComplete
impl TransferComplete
Sourcepub fn touched_paths(&self, moved: bool) -> Vec<PathBuf>
pub fn touched_paths(&self, moved: bool) -> Vec<PathBuf>
Every path whose contents the operation changed: destinations, and sources that a move took away.
Sourcepub fn created_paths(&self) -> impl Iterator<Item = &Path>
pub fn created_paths(&self) -> impl Iterator<Item = &Path>
Destinations created by the operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransferComplete
impl RefUnwindSafe for TransferComplete
impl Send for TransferComplete
impl Sync for TransferComplete
impl Unpin for TransferComplete
impl UnsafeUnpin for TransferComplete
impl UnwindSafe for TransferComplete
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more