Skip to main content

ServerError

Enum ServerError 

Source
pub enum ServerError {
Show 22 variants ConfigLoad { message: String, }, ConfigValidation { message: String, }, ListenerBind { address: SocketAddr, source: Error, }, ListenerAccept { message: String, }, ParticipantIncarnation { phase: &'static str, message: String, }, ParticipantServiceFatal { fatal: ParticipantServiceFatal, }, ConnectionFateRecoveryRequired { open_count: usize, first_open_sequence: u64, }, ServerIncarnationExhausted, ParticipantStartupRestore { message: String, }, ConnectionIncarnationExhausted { attempted_server_incarnation: u64, }, ConnectionPidCollision { pid: u64, }, UnsupportedOperation { operation: String, profile: &'static str, }, PushReplyDisconnected { correlation_id: u64, }, PushReplyTimeout { correlation_id: u64, }, PushReplyExpired { correlation_id: u64, }, ClusterJoin { message: String, }, ClusterSync { message: String, }, ShutdownTimeout { message: String, }, ShutdownFlush { message: String, }, HealthEndpoint { message: String, }, ConnectionLimitReached { limit: usize, }, ConnectionCapReached { operation: String, cap: &'static str, limit: usize, },
}
Expand description

Error taxonomy for standalone liminal server deployment failures.

Variants§

§

ConfigLoad

The configuration file could not be read or parsed.

Fields

§message: String
§

ConfigValidation

The configuration file was read but failed semantic validation.

Fields

§message: String
§

ListenerBind

The server could not bind its configured listener address.

Fields

§address: SocketAddr

Address the server attempted to bind.

§source: Error

Underlying operating-system bind failure.

§

ListenerAccept

The server listener failed while accepting an inbound connection.

Fields

§message: String
§

ParticipantIncarnation

Durable participant-incarnation startup or allocation failed before its result could be published.

Fields

§phase: &'static str

Exact server seam that failed.

§message: String

Underlying durable or bounded-bridge diagnostic.

§

ParticipantServiceFatal

A durable connection-fate Open could not be completed in this process.

The normal runtime shutdown path returns this typed fatal only after it has stopped both listeners and run the ordinary connection drain/flush sequence.

Fields

§fatal: ParticipantServiceFatal

First process-wide post-Open failure; later failures cannot replace it.

§

ConnectionFateRecoveryRequired

Startup found durable connection-fate work that the Decision A/C producer must complete before listener or semantic-service publication.

Fields

§open_count: usize

Number of replay-validated unmatched Opens.

§first_open_sequence: u64

Lowest unmatched Open sequence.

§

ServerIncarnationExhausted

The durable server-incarnation namespace has no successor.

§

ParticipantStartupRestore

Production participant startup restore failed: the durable conversation streams could not be scanned or replayed, so the server-scope capacity ledger cannot be made exact and the server refuses to start over state it cannot account for.

Fields

§message: String

Underlying durable, replay, or bridge diagnostic.

§

ConnectionIncarnationExhausted

The current durable server incarnation has no collision-free connection ordinal left, so the accepted socket was not admitted.

Fields

§attempted_server_incarnation: u64

Server incarnation whose complete ordinal suffix was examined.

§

ConnectionPidCollision

A connection registration found a record already present under its pid. Enforces the pids-fresh-per-spawn supervision invariant loudly: a silent replace would drop the displaced record’s teardown-held fd guard outside the single record-removal funnel (orphaning a live connection’s stream) and increment the liminal_connections_active gauge a second time with no paired decrement. The whole registration is refused instead, leaving the prior record — and its teardown route — intact.

Fields

§pid: u64

The connection pid that already owned a registry record.

§

UnsupportedOperation

A frame requested an operation the configured services profile does not serve (e.g. ordinary publish/subscribe/conversation traffic against the capability-scoped worker front door). Server-internal taxonomy, not wire vocabulary: the connection process renders it as the operation’s existing typed error frame with this error’s text as the message.

Fields

§operation: String

Human-readable description of the refused operation.

§profile: &'static str

The configured services profile that refused it.

§

PushReplyDisconnected

A server→client push reply slot was dropped before a correlated reply arrived — the connection closed (the prompt worker-death signal). Distinct from Self::PushReplyTimeout so consumers can tell a worker that DIED (fast failover) from one that is merely SLOW, by type rather than message.

Fields

§correlation_id: u64

Correlation id of the push whose reply will never arrive.

§

PushReplyTimeout

A server→client push reply did not arrive within the awaiter’s timeout — the worker is still connected but did not reply in this wait quantum. This is BENIGN: the reply slot survives untouched and the caller may re-arm PushReplyAwaiter::receive indefinitely. It is not a worker-death signal.

Fields

§correlation_id: u64

Correlation id of the push whose wait quantum elapsed.

§

PushReplyExpired

A server→client push carrying an explicit reply deadline (via push_to_connection_with_deadline) reached that deadline before a correlated reply arrived. Unlike Self::PushReplyTimeout this is TERMINAL: the reply slot has been removed and its §5 max_pending_pushes_per_connection cap admission released. Returned PROMPTLY once the deadline is due — a receive call does not hold a due expiry until its caller’s quantum ends, so the terminal outcome is independent of how the caller polls. Distinct variant so callers classify by type, not message.

Fields

§correlation_id: u64

Correlation id of the push whose reply deadline passed.

§

ClusterJoin

The server could not join the configured beamr distribution cluster.

Fields

§message: String
§

ClusterSync

Cluster state propagation through beamr distribution failed.

Fields

§message: String
§

ShutdownTimeout

Graceful shutdown did not drain within the configured timeout.

Fields

§message: String
§

ShutdownFlush

Durable state could not be flushed during graceful shutdown.

Fields

§message: String
§

HealthEndpoint

The health endpoint failed to start or serve requests.

Fields

§message: String
§

ConnectionLimitReached

A new connection was refused because the configured max_connections cap (§5) is already reached. The listener drops the freshly accepted stream, refusing the connection, rather than admitting an unbounded fleet.

Fields

§limit: usize

The configured max_connections cap that was hit.

§

ConnectionCapReached

An admission-time per-connection cap (§5) refused an operation: too many subscriptions, conversations, in-flight pushes, or pending conversation replies on one connection. The connection process renders it as the operation’s existing typed error frame with this text as the message.

Fields

§operation: String

Human-readable description of the refused operation.

§cap: &'static str

The name of the cap that refused it (a limits.* config key).

§limit: usize

The configured cap value that was hit.

Trait Implementations§

Source§

impl Debug for ServerError

Source§

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

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

impl Display for ServerError

Source§

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

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

impl Error for ServerError

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

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