pub enum CommitOutcome {
Committed {
revision: CeremonyRevision,
records: Vec<AuditRecord>,
},
Conflict {
expected: ExpectedRevision,
stored: Option<CeremonyRevision>,
},
}Expand description
Result of atomically committing ceremony state, audit records and messages.
Variants§
Implementations§
Source§impl CommitOutcome
impl CommitOutcome
pub fn committed_revision(&self) -> Option<CeremonyRevision>
pub fn records(&self) -> &[AuditRecord]
pub fn is_conflict(&self) -> bool
Trait Implementations§
Source§impl Clone for CommitOutcome
impl Clone for CommitOutcome
Source§fn clone(&self) -> CommitOutcome
fn clone(&self) -> CommitOutcome
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 CommitOutcome
impl Debug for CommitOutcome
Source§impl PartialEq for CommitOutcome
impl PartialEq for CommitOutcome
impl StructuralPartialEq for CommitOutcome
Auto Trait Implementations§
impl Freeze for CommitOutcome
impl RefUnwindSafe for CommitOutcome
impl Send for CommitOutcome
impl Sync for CommitOutcome
impl Unpin for CommitOutcome
impl UnsafeUnpin for CommitOutcome
impl UnwindSafe for CommitOutcome
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