pub struct PlannedFileOperation { /* private fields */ }Expand description
A validated file operation ready for execution.
ⓘ
operation.target_path = std::path::PathBuf::from("outside");Implementations§
Source§impl PlannedFileOperation
impl PlannedFileOperation
Sourcepub const fn operation(&self) -> FileOperationKind
pub const fn operation(&self) -> FileOperationKind
Returns the file operation kind.
Sourcepub fn source_path(&self) -> &Path
pub fn source_path(&self) -> &Path
Returns the normalized source path.
Sourcepub fn target_path(&self) -> &Path
pub fn target_path(&self) -> &Path
Returns the normalized target path.
Sourcepub const fn compare(&self) -> Option<SyncCompare>
pub const fn compare(&self) -> Option<SyncCompare>
Returns the sync comparison mode.
Sourcepub const fn delete(&self) -> Option<bool>
pub const fn delete(&self) -> Option<bool>
Returns whether sync should delete target-only files.
Sourcepub const fn symlinks(&self) -> Option<SymlinkMode>
pub const fn symlinks(&self) -> Option<SymlinkMode>
Returns how copy and sync should treat source symlinks.
Sourcepub fn ignore(&self) -> &[String]
pub fn ignore(&self) -> &[String]
Returns source-relative path patterns ignored by copy and sync.
Sourcepub fn ignore_metadata(&self) -> &[MetadataField]
pub fn ignore_metadata(&self) -> &[MetadataField]
Returns metadata fields ignored by copy and sync.
Sourcepub const fn status(&self) -> PlannedFileStatus
pub const fn status(&self) -> PlannedFileStatus
Returns whether this operation should execute.
Sourcepub const fn declaration(&self) -> SourceSpan
pub const fn declaration(&self) -> SourceSpan
Returns the source location for the operation declaration.
Trait Implementations§
Source§impl Clone for PlannedFileOperation
impl Clone for PlannedFileOperation
Source§fn clone(&self) -> PlannedFileOperation
fn clone(&self) -> PlannedFileOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlannedFileOperation
impl Debug for PlannedFileOperation
impl Eq for PlannedFileOperation
Source§impl PartialEq for PlannedFileOperation
impl PartialEq for PlannedFileOperation
Source§fn eq(&self, other: &PlannedFileOperation) -> bool
fn eq(&self, other: &PlannedFileOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PlannedFileOperation
Auto Trait Implementations§
impl Freeze for PlannedFileOperation
impl RefUnwindSafe for PlannedFileOperation
impl Send for PlannedFileOperation
impl Sync for PlannedFileOperation
impl Unpin for PlannedFileOperation
impl UnsafeUnpin for PlannedFileOperation
impl UnwindSafe for PlannedFileOperation
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