#[non_exhaustive]pub enum ErrorCategory {
InvalidJoinUri,
InvalidEndpoint,
AuthorizationDenied,
HostUnreachable,
TargetUnavailable,
LocalPortUnavailable,
IdentityUnavailable,
OperationConflict,
ResourceLimit,
InvalidConfiguration,
Internal,
}Expand description
Stable error categories for product-level handling.
Detailed error enums and source chains remain available for diagnostics. Applications should use this category when selecting user-facing recovery actions instead of matching error text.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidJoinUri
A public Join URI is malformed or uses an unsupported protocol version.
InvalidEndpoint
Endpoint or Relay configuration cannot be used.
AuthorizationDenied
The Host rejected the supplied service credential.
HostUnreachable
The remote Host or its Relay path cannot be reached.
A configured local target service cannot be reached.
The requested local listener address cannot be bound.
A persistent Node identity cannot be loaded or stored safely.
OperationConflict
The requested lifecycle operation conflicts with current state.
ResourceLimit
A configured connection or work limit was reached.
InvalidConfiguration
A caller supplied configuration value is invalid.
Internal
An invariant or lower-level operation failed without a recoverable product action.
Trait Implementations§
Source§impl Clone for ErrorCategory
impl Clone for ErrorCategory
Source§fn clone(&self) -> ErrorCategory
fn clone(&self) -> ErrorCategory
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ErrorCategory
Source§impl Debug for ErrorCategory
impl Debug for ErrorCategory
impl Eq for ErrorCategory
Source§impl PartialEq for ErrorCategory
impl PartialEq for ErrorCategory
impl StructuralPartialEq for ErrorCategory
Auto Trait Implementations§
impl Freeze for ErrorCategory
impl RefUnwindSafe for ErrorCategory
impl Send for ErrorCategory
impl Sync for ErrorCategory
impl Unpin for ErrorCategory
impl UnsafeUnpin for ErrorCategory
impl UnwindSafe for ErrorCategory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more