Skip to main content

DetachResponse

Struct DetachResponse 

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

Server response bound to one explicit detach request.

Constructors exist only for the outcomes the frozen R-D1 register admits for detach; every other pairing is a compile error by construction.

Implementations§

Source§

impl DetachResponse

Source

pub const fn connection_conversation_capacity_exceeded( request: DetachEnvelope, limit: u64, ) -> Self

First decoded semantic operation for an untracked conversation exceeded the connection-conversation limit (register row 5641).

Source

pub const fn participant_unknown(request: DetachEnvelope) -> Self

Presented participant is unknown (register row 5645).

Source

pub const fn no_binding(request: DetachEnvelope) -> Self

New detach with no Pending cell found no current binding (register row 5646).

Source

pub const fn stale_authority(value: DetachStaleAuthority) -> Self

Detach-specific stale authority: live mismatch or a verified exact old token resolved to a terminalized detach cell (register rows 5647, 5671).

Source

pub const fn retired( request: DetachEnvelope, retired_generation: Generation, ) -> Self

Presented id has a tombstone after Leave (register rows 5648, 5672).

Source

pub const fn detach_committed(value: DetachCommitted) -> Self

Stable committed detach result (register row 5668).

Source

pub const fn detach_in_progress(value: DetachInProgress) -> Self

A different detach token encountered an existing Pending cell (register row 5670).

Source

pub const fn observer_backpressure( request: DetachEnvelope, committed_binding_epoch: BindingEpoch, state: ObserverBackpressureState, ) -> Self

Detach append is blocked or an exact-token Pending replay returned its current cell epoch (register rows 5669, 5673).

Source

pub const fn server_value(&self) -> &ServerValue

Borrows the bound wire value for encoding or inspection.

Source

pub const fn discriminant(&self) -> ServerDiscriminant

Returns the bound value’s exact wire discriminant.

Source

pub fn into_server_value(self) -> ServerValue

Moves the bound wire value out for transmission.

Trait Implementations§

Source§

impl Clone for DetachResponse

Source§

fn clone(&self) -> DetachResponse

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 Debug for DetachResponse

Source§

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

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

impl Eq for DetachResponse

Source§

impl PartialEq for DetachResponse

Source§

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

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 = 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.