pub enum SyncAction {
New(SyncFile),
Unchanged(String),
Modified(SyncFile),
}Expand description
What sync must do with one scanned file.
Variants§
New(SyncFile)
No live episode for this path — ingest.
Unchanged(String)
An episode with this exact content exists — skip (idempotent no-op).
Modified(SyncFile)
The path is known with different content — ingest as a new episode. The previous episode remains (P1); see the module docs.
Trait Implementations§
Source§impl Clone for SyncAction
impl Clone for SyncAction
Source§fn clone(&self) -> SyncAction
fn clone(&self) -> SyncAction
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 SyncAction
impl Debug for SyncAction
impl Eq for SyncAction
Source§impl PartialEq for SyncAction
impl PartialEq for SyncAction
impl StructuralPartialEq for SyncAction
Auto Trait Implementations§
impl Freeze for SyncAction
impl RefUnwindSafe for SyncAction
impl Send for SyncAction
impl Sync for SyncAction
impl Unpin for SyncAction
impl UnsafeUnpin for SyncAction
impl UnwindSafe for SyncAction
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