Skip to main content

ConnectionCoreInvariant

Enum ConnectionCoreInvariant 

Source
#[non_exhaustive]
pub enum ConnectionCoreInvariant { FrameContractViolation(FrameContractViolation), MissingWrite { operation: OperationId, effect: EffectId, }, DiscardedWriteMismatch { expected: OperationId, actual: OperationId, }, WriteIdentityMismatch { operation: OperationId, expected: EffectId, actual: EffectId, }, UnexpectedWrite { operation: OperationId, effect: EffectId, }, WritePolicyMismatch { operation: OperationId, effect: EffectId, disposition: InputDisposition, }, ReservationAccounting, WriteAccounting, WriteProgressContract { written: usize, remaining: usize, }, RecoveryJournalCapacity, Recovered, }
Expand description

Fatal disagreement between the aggregate policy and frame owners.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

FrameContractViolation(FrameContractViolation)

A safe frame implementation changed its byte-view shape after commit.

§

MissingWrite

Policy required a frame that the aggregate writer did not own.

Fields

§operation: OperationId

Accepted operation that should own the frame.

§effect: EffectId

Exact write identity expected by policy.

§

DiscardedWriteMismatch

A discarded frame belonged to a different operation than policy named.

Fields

§expected: OperationId

Operation named by policy.

§actual: OperationId

Operation retained by the writer.

§

WriteIdentityMismatch

Policy and writer disagree about one accepted operation’s write identity.

Fields

§operation: OperationId

Accepted operation whose identity diverged.

§expected: EffectId

Exact effect retained by policy.

§actual: EffectId

Different effect retained by the writer.

§

UnexpectedWrite

The writer retained a frame with no matching policy ownership.

Fields

§operation: OperationId

Operation named by the unexpected frame.

§effect: EffectId

Effect named by the unexpected frame.

§

WritePolicyMismatch

Exact writer progress could not be applied to the corresponding policy record.

Fields

§operation: OperationId

Operation whose frame progressed.

§effect: EffectId

Write identity whose frame progressed.

§disposition: InputDisposition

Policy classification that rejected the progress.

§

ReservationAccounting

Reservation accounting detected impossible release or commit state.

§

WriteAccounting

Outbound retained-byte accounting detected an impossible release.

§

WriteProgressContract

A transport reported positive progress beyond the exact supplied write slice.

Fields

§written: usize

Impossible byte count reported by the transport.

§remaining: usize

Bytes present in the exact supplied slice.

§

RecoveryJournalCapacity

Preallocated recovery-journal capacity disagreed with configured ownership bounds.

§

Recovered

Explicit recovery permanently consumed this fixed-epoch owner.

Trait Implementations§

Source§

impl Clone for ConnectionCoreInvariant

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ConnectionCoreInvariant

Source§

impl Debug for ConnectionCoreInvariant

Source§

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

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

impl Eq for ConnectionCoreInvariant

Source§

impl PartialEq for ConnectionCoreInvariant

Source§

fn eq(&self, other: &Self) -> 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 ConnectionCoreInvariant

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.