pub enum ResignOutcome {
Resigned,
Rejected,
}Expand description
Result of a conditional resignation attempt.
It describes what the current transaction staged and is final only after
the enclosing Database::run succeeds.
Variants§
Resigned
The matching Leadership token staged a release in the current transaction.
Rejected
The durable owner, revision, or persisted duration no longer matched.
No release mutation was staged, preventing an old delayed resignation from releasing a newer leader.
Implementations§
Source§impl ResignOutcome
impl ResignOutcome
Sourcepub fn is_resigned(&self) -> bool
pub fn is_resigned(&self) -> bool
Returns whether the current transaction staged the matching resignation.
This is not proof of release until the outer transaction commits.
Trait Implementations§
Source§impl Clone for ResignOutcome
impl Clone for ResignOutcome
Source§fn clone(&self) -> ResignOutcome
fn clone(&self) -> ResignOutcome
Returns a copy 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 ResignOutcome
impl Debug for ResignOutcome
Source§impl PartialEq for ResignOutcome
impl PartialEq for ResignOutcome
impl Copy for ResignOutcome
impl Eq for ResignOutcome
impl StructuralPartialEq for ResignOutcome
Auto Trait Implementations§
impl Freeze for ResignOutcome
impl RefUnwindSafe for ResignOutcome
impl Send for ResignOutcome
impl Sync for ResignOutcome
impl Unpin for ResignOutcome
impl UnwindSafe for ResignOutcome
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