Skip to main content

ParticipantSemanticError

Enum ParticipantSemanticError 

Source
pub enum ParticipantSemanticError {
    Unavailable,
    Internal {
        message: String,
    },
    ServiceFatal(ParticipantServiceFatal),
    BindingTerminalAdmissionRefused {
        error: BindingTerminalAdmitError,
    },
    BootDrainRefused {
        conversation_id: ConversationId,
        refusal: BootDrainRefusal,
        candidate: String,
        reason: String,
    },
    ConversationSealed {
        conversation_id: ConversationId,
    },
    ConversationUnloadable {
        conversation_id: ConversationId,
        reason: String,
    },
}
Expand description

Non-wire semantic service failure.

A failure is terminal to the connection attempt. It is deliberately not convertible to ServerValue, preventing the server from inventing a lifecycle response when the protocol-owned transition did not produce one.

Variants§

§

Unavailable

The complete semantic service is not installed.

§

Internal

Durable state or a protocol invariant prevented semantic completion.

Fields

§message: String

Diagnostic text for server logs; never placed on the participant wire.

§

ServiceFatal(ParticipantServiceFatal)

A process-wide participant fatal has already latched.

§

BindingTerminalAdmissionRefused

A keyed binding-terminal candidate was refused, carrying the protocol’s own reason rather than a formatted description of it.

BindingTerminalAdmitError::Precedence is lane occupancy: the conversation’s immutable-candidate lane already holds a terminal awaiting its drain. That is a designed structural boundary, and a caller deciding whether to park or to treat the refusal as corruption must be able to tell it from the five genuine authority defects by type.

Fields

§error: BindingTerminalAdmitError

Exact protocol refusal reason.

§

BootDrainRefused

F8B R-BOOT-VERDICT: boot recovery could not empty a restored conversation’s immutable-candidate lane, so the boot refuses HERE, naming the conversation and the shape, instead of starting and dying several collapses downstream on a retained Open it can never replay.

Fields

§conversation_id: ConversationId

Conversation whose restored lane refused its drain.

§refusal: BootDrainRefusal

Typed reason, so a consumer never discriminates on a substring.

§candidate: String

Exact lane head that refused, rendered for the operator.

§reason: String

The drain’s own refusal text.

§

ConversationSealed

F8B R-SEAL: the conversation is Closed — a Died-flavor drain erased its final enrollment token, so its log holds records, terminals and drain rows but no live identity can ever be reached through it again.

Enrollment answers with this NAMED refusal rather than falling through to a fresh identity, which would silently re-open a conversation whose history has already ended. On the wire it rides the existing semantic-error framing; a protocol-native response value with its own discriminant is deferred to a protocol-version leg (§9.8).

Fields

§conversation_id: ConversationId

Conversation whose closure refused the request.

§

ConversationUnloadable

CONTAINMENT: this one conversation’s durable state cannot be loaded, so this one conversation is refused. The node starts, every other conversation is served, and the refusal NAMES its subject.

Attribution is not decoration here, it is half the property. A node that contains an unloadable conversation without naming it boots clean and silently serves nothing on that conversation forever, which is worse than the crash it replaced, because the crash was the only thing telling anyone. The underlying failure travels as reason rather than as a wrapped error because it is already a rendered diagnostic by the time replay refuses it.

Fields

§conversation_id: ConversationId

Conversation whose durable state could not be loaded.

§reason: String

The load failure’s own text, as the operator needs to see it.

Implementations§

Source§

impl ParticipantSemanticError

Source

pub const fn class(&self) -> &'static str

Stable operator-facing class for this refusal.

The rendered message is a diagnostic: it carries the subject and the detail, and it is allowed to move. This is the discriminant an operator surface and a log field can be read against without matching on a substring — which is what the containment record’s consumers need, since the failure text a refused load carries (“expected value at line 1 column 1”) names no class at all on its own.

Trait Implementations§

Source§

impl Clone for ParticipantSemanticError

Source§

fn clone(&self) -> ParticipantSemanticError

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 ParticipantSemanticError

Source§

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

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

impl Display for ParticipantSemanticError

Source§

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

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

impl Eq for ParticipantSemanticError

Source§

impl Error for ParticipantSemanticError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ParticipantSemanticError> for ParticipantDispatchError

Source§

fn from(source: ParticipantSemanticError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ParticipantSemanticError

Source§

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

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> 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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
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> 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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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.
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