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
NotEnoughLoopHops
Fewer distinct eligible hops exist than the loop’s H − 1 positions require (#834 D5).
Fields
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.
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).
ExitWithoutRelayRegistration
Every live exit of the service belongs to a node that registers no relay (#834 D2).
NoExitForProxyProtocol
Live exits advertise the service, but none can serve the requested proxy protocol.
NoExitAllowsTarget
Live exits advertise the service, but no policy allows the target.
PayloadServiceMismatch
A session’s symbol does not match the service its route was selected for.
Fields
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).
SymbolRelayRegistrationMismatch
Every live invoke registrant of (shape, backend) differs from its node’s current relay
registration in session key or process epoch (#834 D2).
SymbolWithoutRelayRegistration
Every live invoke registrant of (shape, backend) lacks a relay registration (#834 D2).
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
impl Clone for OnionRouteError
Source§impl Debug for OnionRouteError
impl Debug for OnionRouteError
Source§impl Display for OnionRouteError
impl Display for OnionRouteError
impl Eq for OnionRouteError
Source§impl Error for OnionRouteError
impl Error for OnionRouteError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for OnionRouteError
impl PartialEq for OnionRouteError
impl StructuralPartialEq for OnionRouteError
Auto Trait Implementations§
impl Forget for OnionRouteError
impl Freeze for OnionRouteError
impl Move for OnionRouteError
impl RefUnwindSafe for OnionRouteError
impl Send for OnionRouteError
impl Sync for OnionRouteError
impl Unpin for OnionRouteError
impl UnsafeUnpin for OnionRouteError
impl UnwindSafe for OnionRouteError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T> MaybeSend for T
impl<T> MaybeSendSync for T
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.