pub enum Mode {
Resolve,
Update(Vec<String>),
Frozen,
Startup {
offline: bool,
},
}Expand description
What Project::sync does.
Variants§
Resolve
chest install: keep what is locked, fresh and present, holding
what the lock pins as chest’s record says. Replay what is locked and
fresh but missing or different, resolve the rest, then write the
lock and the .gitignore block and remove what the manifest dropped.
A copy chest placed that changed since stays as it is, and its entry
is Outcome::Edited.
Update(Vec<String>)
chest update: Mode::Resolve, resolving the named entries, or
all with no names, again even when their lock is fresh.
Frozen
chest install --frozen: fail on a missing or stale lock and on an
installed copy that no longer matches its hash, unless chest’s
record holds it, placed for another lock and unchanged since. Put
back what is missing, and such copies, as the lock pins them. Never
writes the lock.
Startup
yapi startup: replay what is locked, fresh and missing, unless
offline, and skip the rest with one warning. Never writes the lock
or .gitignore.
Trait Implementations§
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Forget for Mode
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnsafeUnpin for Mode
impl UnwindSafe for Mode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.