Skip to main content

RemoteParticipantInbound

Enum RemoteParticipantInbound 

Source
pub enum RemoteParticipantInbound {
    Applied {
        value: ServerValue,
        provenance: ParticipantResponseProvenance,
    },
    Refused {
        value: ServerValue,
        reason: ClientInboundRefusalReason,
        provenance: ParticipantResponseProvenance,
    },
    Push {
        value: ServerPush,
        provenance: ParticipantResponseProvenance,
    },
}
Expand description

Typed result of one decoded participant frame on the real receive path.

Variants§

§

Applied

The protocol crate correlated and applied a semantic response.

Fields

§value: ServerValue

Exact applied server value.

§provenance: ParticipantResponseProvenance

Connection/attempt that delivered it.

§

Refused

The protocol crate retained the response and aggregate unchanged.

Fields

§value: ServerValue

Exact refused server value.

§reason: ClientInboundRefusalReason

Closed crate refusal reason, including conservative ambiguity.

§provenance: ParticipantResponseProvenance

Connection/attempt that delivered it.

§

Push

Server push decoded in the client direction; no correlation rule applies.

Fields

§value: ServerPush

Exact pushed value.

§provenance: ParticipantResponseProvenance

Connection/attempt that delivered it.

Implementations§

Source§

impl RemoteParticipantInbound

Source

pub fn record_admission_fate(&self) -> Option<RecordAdmissionFate>

The TERMINAL fate of a record admission, when this inbound settles one.

Some exactly for an APPLIED commit or an APPLIED terminal protocol fault. None for every transient refusal, every value answering another operation, every Push, and — deliberately — for every Refused: the crate declined to correlate that value, so it settles nothing and the carrier’s slot stays.

Transport-agnostic by construction. Both the wire and the in-process loopback transport decode through the same codec and land in the same apply_inbound, so a carrier written against this reads the same fate either way.

Source

pub const fn committed_delivery_seq(&self) -> Option<DeliverySeq>

The record sequence the server assigned an admitted record, when this inbound is an APPLIED ServerValue::RecordCommitted.

This is the answer to a RecordAdmission, read off the exact wire value the protocol crate applied. It saves every caller destructuring the wire enum to reach the one number a record admission is asked for, without removing that value: Applied still carries the whole ServerValue, so this is purely additive.

None for everything else, and that includes a RecordCommitted the crate REFUSED. A refused commit carries a sequence on the wire while leaving the aggregate and its correlation untouched – returning it here would report a commitment the crate deliberately declined to make. It is also None for a Push, which is a delivery rather than a correlated response.

Trait Implementations§

Source§

impl Debug for RemoteParticipantInbound

Source§

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

Formats the value using the given formatter. Read more

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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, <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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more