pub struct InProcessAllocationLock { /* private fields */ }Expand description
The lock every task inside one agent process contends for.
This is the implementation that matters in practice, because the
single-instance lock (d1) already guarantees one agent per host: the
concurrency the allocation lock actually has to serialise is f3’s
per-target loops inside that one process. A tokio mutex rather than a
std one because it is held across the await that creates the runtime.
Implementations§
Trait Implementations§
Source§impl Debug for InProcessAllocationLock
impl Debug for InProcessAllocationLock
Source§impl Default for InProcessAllocationLock
impl Default for InProcessAllocationLock
Source§fn default() -> InProcessAllocationLock
fn default() -> InProcessAllocationLock
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for InProcessAllocationLock
impl !UnwindSafe for InProcessAllocationLock
impl Freeze for InProcessAllocationLock
impl Send for InProcessAllocationLock
impl Sync for InProcessAllocationLock
impl Unpin for InProcessAllocationLock
impl UnsafeUnpin for InProcessAllocationLock
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