pub struct ObserverRecoveryCommit { /* private fields */ }Expand description
Whole-batch observer-recovery commit selected after exhaustive validation.
The arm list and response are produced together. A consumer must persist all
arms atomically before sending Self::outcome, so no validation failure or
crash can expose a partially armed request.
Implementations§
Source§impl ObserverRecoveryCommit
impl ObserverRecoveryCommit
Sourcepub fn arms(&self) -> &[ObserverRecoveryArm]
pub fn arms(&self) -> &[ObserverRecoveryArm]
Borrows the complete equal-epoch arm plan in request order.
Sourcepub const fn outcome(&self) -> &ObserverRecoveryAccepted
pub const fn outcome(&self) -> &ObserverRecoveryAccepted
Borrows the exact request-ordered success response.
Sourcepub fn into_parts(self) -> (Vec<ObserverRecoveryArm>, ObserverRecoveryAccepted)
pub fn into_parts(self) -> (Vec<ObserverRecoveryArm>, ObserverRecoveryAccepted)
Consumes the commit into the atomic arm plan and success response.
Trait Implementations§
Source§impl Clone for ObserverRecoveryCommit
impl Clone for ObserverRecoveryCommit
Source§fn clone(&self) -> ObserverRecoveryCommit
fn clone(&self) -> ObserverRecoveryCommit
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 ObserverRecoveryCommit
impl Debug for ObserverRecoveryCommit
impl Eq for ObserverRecoveryCommit
Source§impl PartialEq for ObserverRecoveryCommit
impl PartialEq for ObserverRecoveryCommit
impl StructuralPartialEq for ObserverRecoveryCommit
Auto Trait Implementations§
impl Freeze for ObserverRecoveryCommit
impl RefUnwindSafe for ObserverRecoveryCommit
impl Send for ObserverRecoveryCommit
impl Sync for ObserverRecoveryCommit
impl Unpin for ObserverRecoveryCommit
impl UnsafeUnpin for ObserverRecoveryCommit
impl UnwindSafe for ObserverRecoveryCommit
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