pub enum LockMode {
Check,
Virtual,
WriteAsNeeded,
}Expand description
Lock-file update strategy for LockFlags::set_mode.
The three modes are mutually exclusive at the C-API level. Picking one
writes into the underlying nix_flake_lock_flags slot, so chaining
modes is meaningless. Exposing them as an enum makes that obvious at
the call site.
Variants§
Check
Require the lock file to be up-to-date; fail if it needs updating.
Virtual
Update the lock file in memory only; do not write it to disk.
WriteAsNeeded
Update and write the lock file to disk if it needs updating.
Trait Implementations§
impl Copy for LockMode
impl Eq for LockMode
impl StructuralPartialEq for LockMode
Auto Trait Implementations§
impl Freeze for LockMode
impl RefUnwindSafe for LockMode
impl Send for LockMode
impl Sync for LockMode
impl Unpin for LockMode
impl UnsafeUnpin for LockMode
impl UnwindSafe for LockMode
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