pub enum ProcessLeaseClaimOutcome {
Acquired(ProcessLease),
Busy {
holder: ProcessLease,
},
}Expand description
Outcome of claiming (or reclaiming) a ProcessLease.
Mirrors SessionExecutionLeaseClaimOutcome:
a busy outcome carries the observed holder so the claimant can assess its
liveness and perform a fenced reclaim on exactly the lease it observed.
Variants§
Implementations§
Source§impl ProcessLeaseClaimOutcome
impl ProcessLeaseClaimOutcome
pub fn acquired(self) -> Option<ProcessLease>
Trait Implementations§
Source§impl Clone for ProcessLeaseClaimOutcome
impl Clone for ProcessLeaseClaimOutcome
Source§fn clone(&self) -> ProcessLeaseClaimOutcome
fn clone(&self) -> ProcessLeaseClaimOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProcessLeaseClaimOutcome
impl Debug for ProcessLeaseClaimOutcome
Source§impl<'de> Deserialize<'de> for ProcessLeaseClaimOutcome
impl<'de> Deserialize<'de> for ProcessLeaseClaimOutcome
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
Auto Trait Implementations§
impl Freeze for ProcessLeaseClaimOutcome
impl RefUnwindSafe for ProcessLeaseClaimOutcome
impl Send for ProcessLeaseClaimOutcome
impl Sync for ProcessLeaseClaimOutcome
impl Unpin for ProcessLeaseClaimOutcome
impl UnsafeUnpin for ProcessLeaseClaimOutcome
impl UnwindSafe for ProcessLeaseClaimOutcome
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