pub struct LeaveResponse { /* private fields */ }Expand description
Server response bound to one terminal Leave request.
Constructors exist only for the outcomes the frozen R-D1 register admits for Leave; every other pairing is a compile error by construction.
Implementations§
Source§impl LeaveResponse
impl LeaveResponse
Sourcepub const fn attempt_token_body_conflict(
token: LeaveAttemptToken,
conversation_id: ConversationId,
presented_participant_id: ParticipantId,
presented_generation: Generation,
) -> Self
pub const fn attempt_token_body_conflict( token: LeaveAttemptToken, conversation_id: ConversationId, presented_participant_id: ParticipantId, presented_generation: Generation, ) -> Self
Exact committed Leave token with verified secret but a changed canonical non-secret body; Leave can select only the generation conflict (register row 5639).
Sourcepub const fn connection_conversation_capacity_exceeded(
request: LeaveEnvelope,
limit: u64,
) -> Self
pub const fn connection_conversation_capacity_exceeded( request: LeaveEnvelope, limit: u64, ) -> Self
First decoded semantic operation for an untracked conversation exceeded the connection-conversation limit (register row 5641).
Sourcepub const fn participant_unknown(request: LeaveEnvelope) -> Self
pub const fn participant_unknown(request: LeaveEnvelope) -> Self
Presented participant is unknown (register row 5645).
Sourcepub const fn no_binding(request: LeaveEnvelope) -> Self
pub const fn no_binding(request: LeaveEnvelope) -> Self
Leave while a different live binding epoch exists (register row 5646).
Leave-specific stale authority: live mismatch or the exact committed Leave token with a wrong secret (register rows 5647, 5680).
Sourcepub const fn retired(
request: LeaveEnvelope,
retired_generation: Generation,
) -> Self
pub const fn retired( request: LeaveEnvelope, retired_generation: Generation, ) -> Self
Presented id has a tombstone under a different token (register rows 5648, 5680).
Sourcepub fn marker_closure_capacity_exceeded(
request: LeaveEnvelope,
snapshot: ClosureSnapshot,
reason: ClosureRefusalReason,
) -> Self
pub fn marker_closure_capacity_exceeded( request: LeaveEnvelope, snapshot: ClosureSnapshot, reason: ClosureRefusalReason, ) -> Self
Closure-checked Leave admission exceeded marker-closure capacity (register row 5649).
Sourcepub const fn leave_committed(value: LeaveCommitted) -> Self
pub const fn leave_committed(value: LeaveCommitted) -> Self
Terminal Leave success for the bound or detached exact-secret arms (register rows 5678, 5679).
Sourcepub const fn observer_backpressure(
request: LeaveEnvelope,
state: ObserverBackpressureState,
prior_terminal_cell_exists: bool,
) -> Self
pub const fn observer_backpressure( request: LeaveEnvelope, state: ObserverBackpressureState, prior_terminal_cell_exists: bool, ) -> Self
Hard-observer retention refused the Leave append (register row 5681).
Sourcepub const fn server_value(&self) -> &ServerValue
pub const fn server_value(&self) -> &ServerValue
Borrows the bound wire value for encoding or inspection.
Sourcepub const fn discriminant(&self) -> ServerDiscriminant
pub const fn discriminant(&self) -> ServerDiscriminant
Returns the bound value’s exact wire discriminant.
Sourcepub fn into_server_value(self) -> ServerValue
pub fn into_server_value(self) -> ServerValue
Moves the bound wire value out for transmission.
Trait Implementations§
Source§impl Clone for LeaveResponse
impl Clone for LeaveResponse
Source§fn clone(&self) -> LeaveResponse
fn clone(&self) -> LeaveResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more