Skip to main content

ObserverRecoveryTransaction

Struct ObserverRecoveryTransaction 

Source
pub struct ObserverRecoveryTransaction { /* private fields */ }
Expand description

Ownership barrier between arm selection and atomic arm installation.

The aggregate is unreachable while the transaction is pending, so no progress can advance between the equal-epoch read and the installation. Consuming Self::commit installs every arm of the plan at once — a subset is unrepresentable — and consuming Self::abort installs none, so a crash at any point leaves either the complete arm plan or no arm at all, never a partially-armed request.

Implementations§

Source§

impl ObserverRecoveryTransaction

Source

pub fn arms(&self) -> &[ObserverRecoveryArm]

Borrows the complete equal-epoch arm plan for the durable append.

Source

pub const fn outcome(&self) -> &ObserverRecoveryAccepted

Borrows the exact request-ordered success response.

Source

pub fn commit(self) -> (ObserverRecoveryAggregate, ObserverRecoveryAccepted)

Installs the whole arm plan after a confirmed durable append.

Installation is idempotent: replaying a durable recovery against the post-state reinstalls the identical equal-epoch arms, so at most one arm per conversation ever exists and crash replay converges.

Source

pub fn abort(self) -> ObserverRecoveryAggregate

Cancels a failed durable append; not one arm is installed.

Trait Implementations§

Source§

impl Debug for ObserverRecoveryTransaction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ObserverRecoveryTransaction

Source§

impl PartialEq for ObserverRecoveryTransaction

Source§

fn eq(&self, other: &ObserverRecoveryTransaction) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ObserverRecoveryTransaction

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.