#[non_exhaustive]
pub enum FailedAttemptError { UnusableIntro { error: InvalidTarget, intro_index: IntroPtIndex, }, RendezvousCircuitObtain { error: Error, }, RendezvousEstablishTimeout { rend_pt: Redacted<RelayIds>, }, RendezvousEstablish { error: Error, rend_pt: Redacted<RelayIds>, }, IntroductionCircuitObtain { error: Error, intro_index: IntroPtIndex, }, IntroductionExchange { error: Error, intro_index: IntroPtIndex, }, IntroductionFailed { status: IntroduceAckStatus, intro_index: IntroPtIndex, }, IntroductionTimeout { intro_index: IntroPtIndex, }, RendezvousCompletionTimeout { intro_index: IntroPtIndex, rend_pt: Redacted<RelayIds>, }, RendezvousCompletionCircuitError { error: Error, intro_index: IntroPtIndex, rend_pt: Redacted<RelayIds>, }, RendezvousCompletionHandshake { error: Error, intro_index: IntroPtIndex, rend_pt: Redacted<RelayIds>, }, Bug(Bug), }
Expand description

Error that occurred making one attempt to connect to a hidden service using an IP and RP

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UnusableIntro

Fields

§error: InvalidTarget

Why it’s not use able

§intro_index: IntroPtIndex

The index of the IPT in the list of IPTs in the descriptor

Introduction point unusable because it couldn’t be used as a circuit target

§

RendezvousCircuitObtain

Fields

§error: Error

Why it’s not use able

Failed to obtain any circuit to use as a rendezvous circuit

§

RendezvousEstablishTimeout

Fields

§rend_pt: Redacted<RelayIds>

Which relay did we choose for rendezvous point

Creating a rendezvous circuit and rendezvous point took too long

§

RendezvousEstablish

Fields

§error: Error

What happened

§rend_pt: Redacted<RelayIds>

Which relay did we choose for rendezvous point

Failed to establish rendezvous point

§

IntroductionCircuitObtain

Fields

§error: Error

What happened

§intro_index: IntroPtIndex

The index of the IPT in the list of IPTs in the descriptor

Failed to obtain circuit to introduction point

§

IntroductionExchange

Fields

§error: Error

What happened

§intro_index: IntroPtIndex

The index of the IPT in the list of IPTs in the descriptor

Introduction exchange (with the introduction point) failed

§

IntroductionFailed

Fields

§status: IntroduceAckStatus

The status code provided by the introduction point

§intro_index: IntroPtIndex

The index of the IPT in the list of IPTs in the descriptor

Introduction point reported error in its INTRODUCE_ACK

§

IntroductionTimeout

Fields

§intro_index: IntroPtIndex

The index of the IPT in the list of IPTs in the descriptor

Communication with introduction point {intro_index} took too long

This might mean it took too long to establish a circuit to the IPT, or that the INTRODUCE exchange took too long.

§

RendezvousCompletionTimeout

Fields

§intro_index: IntroPtIndex

The index of the IPT in the list of IPTs in the descriptor

§rend_pt: Redacted<RelayIds>

Which relay did we choose for rendezvous point

It took too long for the rendezvous to be completed

This might be the fault of almost anyone. All we know is that we got a successful INTRODUCE_ACK but the RENDEZVOUS2 never arrived.

§

RendezvousCompletionCircuitError

Fields

§error: Error

What happened

§intro_index: IntroPtIndex

The index of the IPT in the list of IPTs in the descriptor

§rend_pt: Redacted<RelayIds>

Which relay did we choose for rendezvous point

Error on rendezvous circuit when expecting rendezvous completion (RENDEZVOUS2)

§

RendezvousCompletionHandshake

Fields

§error: Error

What happened

§intro_index: IntroPtIndex

The index of the IPT in the list of IPTs in the descriptor

§rend_pt: Redacted<RelayIds>

Which relay did we choose for rendezvous point

Error processing rendezvous completion (RENDEZVOUS2)

This is might be the fault of the hidden service or the rendezvous point.

§

Bug(Bug)

Internal error

Trait Implementations§

source§

impl AsRef<dyn Error> for FailedAttemptError

source§

fn as_ref(&self) -> &(dyn Error + 'static)

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for FailedAttemptError

source§

fn clone(&self) -> FailedAttemptError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FailedAttemptError

source§

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

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

impl Display for FailedAttemptError

source§

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

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

impl Error for FailedAttemptError

source§

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

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, demand: &mut Demand<'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<Bug> for FailedAttemptError

source§

fn from(source: Bug) -> Self

Converts to this type from the input type.
source§

impl HasKind for FailedAttemptError

source§

fn kind(&self) -> ErrorKind

Return the kind of this error.
source§

impl HasRetryTime for FailedAttemptError

When an attempt like this should be retried.

For error variants with an introduction point index (FailedAttemptError::intro_index returns Some) that’s when we might retry with that introduction point.

For error variants with a rendezvous point, that’s when we might retry with that rendezvous point.

For variants with both, we don’t know which of the introduction point or rendezvous point is implicated. Retrying earlier with one different relay out of the two relays would be reasonable, as would delaying retrying with either of the same relays.

source§

fn retry_time(&self) -> RetryTime

Return the time when the operation that gave this error can be retried. Read more
source§

fn abs_retry_time<F>(&self, now: Instant, choose_delay: F) -> AbsRetryTimewhere F: FnOnce() -> Duration, Self: Sized,

Return an absolute retry when the operation that gave this error can be retried. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for Twhere T: Any,

§

fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for Twhere T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<E> ErrorReport for Ewhere E: Error + 'static,

source§

fn report(&self) -> Report<ReportHelper<'_>>

Return an object that displays the error and its causes
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 Twhere 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<E> Provider for Ewhere E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

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 Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

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