pub struct Rename(/* private fields */);
Expand description
Information for the SyncFilter::rename callback.
Implementations§
Source§impl Rename
impl Rename
Sourcepub fn is_directory(&self) -> bool
pub fn is_directory(&self) -> bool
Whether or not the placeholder being renamed is a directory.
Sourcepub fn source_in_scope(&self) -> bool
pub fn source_in_scope(&self) -> bool
Whether or not the placeholder was originally in the sync root.
Sourcepub fn target_in_scope(&self) -> bool
pub fn target_in_scope(&self) -> bool
Whether or not the placeholder is being moved inside the sync root.
Sourcepub fn target_path(&self) -> PathBuf
pub fn target_path(&self) -> PathBuf
The full path the placeholder is being moved to.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rename
impl RefUnwindSafe for Rename
impl !Send for Rename
impl !Sync for Rename
impl Unpin for Rename
impl UnwindSafe for Rename
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