pub enum RootSyncOutcome {
MissingRoot,
SyncNeeded,
StaleRemote,
NoOpClean,
}Expand description
The effective sync action for one root, derived from convergence.
Variants§
MissingRoot
Local root is missing — cannot sync.
SyncNeeded
Never synced to the remote (no remote hash yet) — first sync needed.
StaleRemote
Remote is out of date relative to local — re-sync needed.
NoOpClean
Local and remote agree — nothing to do.
Implementations§
Source§impl RootSyncOutcome
impl RootSyncOutcome
Sourcepub const fn needs_sync(self) -> bool
pub const fn needs_sync(self) -> bool
Whether this outcome implies a transfer will occur.
Trait Implementations§
Source§impl Clone for RootSyncOutcome
impl Clone for RootSyncOutcome
impl Copy for RootSyncOutcome
Source§impl Debug for RootSyncOutcome
impl Debug for RootSyncOutcome
Source§impl<'de> Deserialize<'de> for RootSyncOutcome
impl<'de> Deserialize<'de> for RootSyncOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RootSyncOutcome
Source§impl PartialEq for RootSyncOutcome
impl PartialEq for RootSyncOutcome
Source§impl Serialize for RootSyncOutcome
impl Serialize for RootSyncOutcome
impl StructuralPartialEq for RootSyncOutcome
Auto Trait Implementations§
impl Freeze for RootSyncOutcome
impl RefUnwindSafe for RootSyncOutcome
impl Send for RootSyncOutcome
impl Sync for RootSyncOutcome
impl Unpin for RootSyncOutcome
impl UnsafeUnpin for RootSyncOutcome
impl UnwindSafe for RootSyncOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.