pub struct KeyLifecycleContext<'a> { /* private fields */ }Expand description
Context for evaluating concurrency key lifecycle during a state transition.
Implementations§
Source§impl<'a> KeyLifecycleContext<'a>
impl<'a> KeyLifecycleContext<'a>
Sourcepub fn new(
concurrency_key: Option<String>,
run_id: RunId,
key_gate: &'a mut KeyGate,
hold_policy: ConcurrencyKeyHoldPolicy,
) -> Self
pub fn new( concurrency_key: Option<String>, run_id: RunId, key_gate: &'a mut KeyGate, hold_policy: ConcurrencyKeyHoldPolicy, ) -> Self
Creates a new key lifecycle context.
Sourcepub fn concurrency_key(&self) -> Option<&str>
pub fn concurrency_key(&self) -> Option<&str>
Returns the optional concurrency key.
Sourcepub fn hold_policy(&self) -> ConcurrencyKeyHoldPolicy
pub fn hold_policy(&self) -> ConcurrencyKeyHoldPolicy
Returns the hold policy.
Auto Trait Implementations§
impl<'a> Freeze for KeyLifecycleContext<'a>
impl<'a> RefUnwindSafe for KeyLifecycleContext<'a>
impl<'a> Send for KeyLifecycleContext<'a>
impl<'a> Sync for KeyLifecycleContext<'a>
impl<'a> Unpin for KeyLifecycleContext<'a>
impl<'a> UnsafeUnpin for KeyLifecycleContext<'a>
impl<'a> !UnwindSafe for KeyLifecycleContext<'a>
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