pub enum AcquireResult {
Acquired {
key: ConcurrencyKey,
run_id: RunId,
},
Occupied {
key: ConcurrencyKey,
holder_run_id: RunId,
},
}Expand description
Result of a concurrency key acquisition attempt.
Variants§
Acquired
The key was successfully acquired for the run.
Fields
§
key: ConcurrencyKeyThe concurrency key that was acquired.
Occupied
The key is already occupied by another run.
Fields
§
key: ConcurrencyKeyThe concurrency key that is occupied.
Trait Implementations§
Source§impl Clone for AcquireResult
impl Clone for AcquireResult
Source§fn clone(&self) -> AcquireResult
fn clone(&self) -> AcquireResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AcquireResult
impl Debug for AcquireResult
Source§impl PartialEq for AcquireResult
impl PartialEq for AcquireResult
impl Eq for AcquireResult
impl StructuralPartialEq for AcquireResult
Auto Trait Implementations§
impl Freeze for AcquireResult
impl RefUnwindSafe for AcquireResult
impl Send for AcquireResult
impl Sync for AcquireResult
impl Unpin for AcquireResult
impl UnsafeUnpin for AcquireResult
impl UnwindSafe for AcquireResult
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