Struct ubiquity::detect::Difference
[−]
[src]
pub struct Difference<N: NumRoots> { pub path: PathBuf, pub roots: GenericArray<PathBuf, N>, pub previous_state: Option<GenericArray<ArchiveEntryPerReplica, N>>, pub current_state: GenericArray<ArchiveEntryPerReplica, N>, }
An instance of this struct represents the files/folders differ. There may be a suggested action to be taken.
Fields
path: PathBuf
The path at which the difference occurred
roots: GenericArray<PathBuf, N>
The roots of the syncing operation
previous_state: Option<GenericArray<ArchiveEntryPerReplica, N>>
The previous state that may be present from the archive
current_state: GenericArray<ArchiveEntryPerReplica, N>
The current state of the files
Methods
impl<N: NumRoots> Difference<N>
[src]
fn absolute_path_for_root(&self, index: usize) -> PathBuf
Trait Implementations
impl<N: Debug + NumRoots> Debug for Difference<N>
[src]
impl<N: Clone + NumRoots> Clone for Difference<N>
[src]
fn clone(&self) -> Difference<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more