pub enum SyncFlushPolicy {
PreferEngine,
PreferDisk,
NewerWins,
}Expand description
How aggressive the flush-to-disk side should be when an in-engine remember would overwrite a file the human is editing.
Variants§
PreferEngine
Always overwrite the on-disk file with the engine’s version. Used during a fresh import.
PreferDisk
Always preserve the on-disk file; engine writes that would
overwrite are written to a sibling .conflict.md. Default.
NewerWins
Pick whichever has the more recent timestamp; tie goes to disk.
Trait Implementations§
Source§impl Clone for SyncFlushPolicy
impl Clone for SyncFlushPolicy
Source§fn clone(&self) -> SyncFlushPolicy
fn clone(&self) -> SyncFlushPolicy
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 moreimpl Copy for SyncFlushPolicy
Source§impl Debug for SyncFlushPolicy
impl Debug for SyncFlushPolicy
Source§impl Default for SyncFlushPolicy
impl Default for SyncFlushPolicy
Source§fn default() -> SyncFlushPolicy
fn default() -> SyncFlushPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SyncFlushPolicy
impl<'de> Deserialize<'de> for SyncFlushPolicy
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 SyncFlushPolicy
Source§impl PartialEq for SyncFlushPolicy
impl PartialEq for SyncFlushPolicy
Source§impl Serialize for SyncFlushPolicy
impl Serialize for SyncFlushPolicy
impl StructuralPartialEq for SyncFlushPolicy
Auto Trait Implementations§
impl Freeze for SyncFlushPolicy
impl RefUnwindSafe for SyncFlushPolicy
impl Send for SyncFlushPolicy
impl Sync for SyncFlushPolicy
impl Unpin for SyncFlushPolicy
impl UnsafeUnpin for SyncFlushPolicy
impl UnwindSafe for SyncFlushPolicy
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