pub struct LockFlags { /* private fields */ }Expand description
Flags controlling the lock-file update strategy for LockedFlake::lock.
Holds an Arc to the originating FlakeSettings so the settings cannot
be dropped while these flags are alive.
Implementations§
Source§impl LockFlags
impl LockFlags
Sourcepub fn new(
context: &Arc<Context>,
flake_settings: &Arc<FlakeSettings>,
) -> Result<Self>
pub fn new( context: &Arc<Context>, flake_settings: &Arc<FlakeSettings>, ) -> Result<Self>
Create new lock flags with default values.
§Errors
Returns an error if the underlying allocation fails.
Sourcepub fn add_input_override(
self,
input_path: &str,
flake_ref: &FlakeReference,
) -> Result<Self>
pub fn add_input_override( self, input_path: &str, flake_ref: &FlakeReference, ) -> Result<Self>
Override a specific input with an alternative flake reference.
input_path identifies the input (e.g. "nixpkgs").
§Errors
Returns an error if the C API call fails.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LockFlags
impl RefUnwindSafe for LockFlags
impl !Sync for LockFlags
impl Unpin for LockFlags
impl UnsafeUnpin for LockFlags
impl UnwindSafe for LockFlags
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