Skip to main content

OnionRouteError

Enum OnionRouteError 

Source
pub enum OnionRouteError {
Show 30 variants LoopSymbolsOutOfBounds { symbols: usize, max_symbols: usize, }, NotEnoughLoopHops { required: usize, eligible: usize, }, NoDistinctSymbolHops, LoopDrawInvariant, NoPermittedFirstHop, NoLiveExit { service: String, }, ExitRelayRegistrationMismatch { service: String, }, ExitWithoutRelayRegistration { service: String, }, NoExitForProxyProtocol { service: String, protocol: String, }, NoExitAllowsTarget { service: String, target: String, }, PayloadServiceMismatch { payload_service: String, route_service: String, }, LinkSendCancelled, LinkSendTimedOut, HttpsResponseClosed, TcpTarget(String), TcpOpenTimedOut, TcpStreamClosed, UdpTarget(String), UdpOpenTimedOut, UdpSessionClosed, LoopBuild(String), ExitRefused, SessionFailed, ExitFailure(OnionExitFailure), NoLiveSymbol { shape: String, backend: String, }, SymbolRelayRegistrationMismatch { shape: String, backend: String, }, SymbolWithoutRelayRegistration { shape: String, backend: String, }, PipelineRouteMismatch, PipelineTimedOut, PipelineFailed,
}
Expand description

Local route and session failure before any user-facing rendering.

Variants§

§

LoopSymbolsOutOfBounds

A pipeline has no symbol application or more than the loop admits (#834 D4a).

Fields

§symbols: usize

Number of symbol applications of the pipeline.

§max_symbols: usize

Largest number of symbol applications of one loop.

§

NotEnoughLoopHops

Fewer distinct eligible hops exist than the loop’s H − 1 positions require (#834 D5).

Fields

§required: usize

Distinct hops the loop requires.

§eligible: usize

Distinct eligible hops found.

§

NoDistinctSymbolHops

The symbol registrants admit no assignment of pairwise distinct hops to the symbol positions of a loop.

§

LoopDrawInvariant

A loop draw found no candidate although its matching guaranteed one: a violated invariant of loop selection, never a property of the network.

§

NoPermittedFirstHop

Route construction could not select a first hop accepted by the caller.

§

NoLiveExit

No live exit descriptor offers the requested service.

Fields

§service: String

Requested service name.

§

ExitRelayRegistrationMismatch

Every live exit of the service differs from its node’s current relay registration in session key or process epoch: the exit registered from another process, typically before a restart, and its descriptors have not converged (#834 D2).

Fields

§service: String

Requested service name.

§

ExitWithoutRelayRegistration

Every live exit of the service belongs to a node that registers no relay (#834 D2).

Fields

§service: String

Requested service name.

§

NoExitForProxyProtocol

Live exits advertise the service, but none can serve the requested proxy protocol.

Fields

§service: String

Requested service name.

§protocol: String

Requested proxy protocol label.

§

NoExitAllowsTarget

Live exits advertise the service, but no policy allows the target.

Fields

§service: String

Requested service name.

§target: String

Requested target authority.

§

PayloadServiceMismatch

A session’s symbol does not match the service its route was selected for.

Fields

§payload_service: String

Symbol the session applies.

§route_service: String

Service label selected by the route.

§

LinkSendCancelled

A queued endpoint cell lost its drain task before the overlay reported a result.

§

LinkSendTimedOut

An endpoint’s cell found no room on its lane, or did not leave, within the send deadline.

§

HttpsResponseClosed

An HTTPS response channel closed before the exit’s outcome was delivered.

§

TcpTarget(String)

The exit’s tcp world failed at its target: a connect, read, write or shutdown of the target’s socket. The reason stays at the exit; the client sees only a failed session.

§

TcpOpenTimedOut

The exit’s connect to a tcp target did not complete within its open timeout.

§

TcpStreamClosed

A session’s driver has already ended.

§

UdpTarget(String)

The exit’s udp world failed at its bound socket or frame stream. The reason stays at the exit; the client sees only a failed session.

§

UdpOpenTimedOut

The exit’s udp socket bind did not complete within its open timeout.

§

UdpSessionClosed

A udp session’s driver has already ended.

§

LoopBuild(String)

The client could not build a loop over its route (a value too wide for its class, or a key failure of negligible probability).

§

ExitRefused

The exit answered the session’s open with a refusal; the exit gives no reason (#834 D2′). A session that ends locally before the exit answers reports its own error instead (#1118).

§

SessionFailed

A session failed closed: a gap in its sequence, its liveness deadline, a lost reply, or the exit’s abort, whether before or after the exit answered its open.

§

ExitFailure(OnionExitFailure)

An exit-reported failure reached the local route client.

§

NoLiveSymbol

No live invoke descriptor offers (shape, backend).

Fields

§shape: String

Canonical invoke shape string.

§backend: String

Requested backend name.

§

SymbolRelayRegistrationMismatch

Every live invoke registrant of (shape, backend) differs from its node’s current relay registration in session key or process epoch (#834 D2).

Fields

§shape: String

Canonical invoke shape string.

§backend: String

Requested backend name.

§

SymbolWithoutRelayRegistration

Every live invoke registrant of (shape, backend) lacks a relay registration (#834 D2).

Fields

§shape: String

Canonical invoke shape string.

§backend: String

Requested backend name.

§

PipelineRouteMismatch

A Kleisli pipeline’s (shape, backend) sequence does not match the selected route’s.

§

PipelineTimedOut

A one-shot Kleisli pipeline did not return before its loop expiry x.

§

PipelineFailed

A one-shot Kleisli pipeline failed closed (e.g., its guard link retired or dropped).

Trait Implementations§

Source§

impl Clone for OnionRouteError

Source§

fn clone(&self) -> Self

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 OnionRouteError

Source§

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

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

impl Display for OnionRouteError

Source§

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

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

impl Eq for OnionRouteError

Source§

impl Error for OnionRouteError

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

Replaced by Error::source.
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 PartialEq for OnionRouteError

Source§

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

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> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

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

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

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T> MaybeSend for T
where T: Send + ?Sized,

Source§

impl<T> MaybeSendSync for T
where T: Send + Sync + ?Sized,

Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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> ToSmolStr for T
where T: Display + ?Sized,

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

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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