pub enum LockKind {
SingleInstance,
Allocation,
}Expand description
Which of the two host locks.
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.
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 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