pub enum LockKind {
SingleInstance,
Allocation,
CredentialRenewal,
DependencyCache,
DockerCleanup,
GitCache,
Update,
}Expand description
Which host-wide operation is being excluded.
Variants§
SingleInstance
Held for the whole life of the agent process. One holder per host means one reconciler per host.
Allocation
Held only while one runtime is being created, so that two concurrent allocations cannot both read the same headroom and both use it.
CredentialRenewal
Held while one process rotates the credential shared by a service and foreground tools.
DependencyCache
Held while a launch leases a dependency-cache namespace, or while a
prune moves an idle one aside, so a prune never takes a namespace a
runner is about to use. It lives in the cache root, not in state/.
DockerCleanup
Serializes daemon and operator Docker cleanup sweeps.
GitCache
Serializes independent Git snapshot readers/writers for one repository.
Update
Serializes manual and automatic application updates.
Implementations§
Trait Implementations§
impl Copy for LockKind
Source§impl<'de> Deserialize<'de> for LockKind
impl<'de> Deserialize<'de> for LockKind
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 LockKind
impl StructuralPartialEq for LockKind
Auto Trait Implementations§
impl Forget for LockKind
impl Freeze for LockKind
impl RefUnwindSafe for LockKind
impl Send for LockKind
impl Sync for LockKind
impl Unpin for LockKind
impl UnsafeUnpin for LockKind
impl UnwindSafe for LockKind
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