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.
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. Writes nothing.
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 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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.