Enum tor_hsclient::InvalidTarget
source · #[non_exhaustive]pub enum InvalidTarget {
UnparseableChanTargetInfo(Error),
InvalidChanTargetInfo(ChanTargetDecodeError),
ImpossibleRelayIds(RelayLookupError),
Bug(Bug),
}Expand description
We were given unusable information about an introduction point or rendezvous point.
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.
UnparseableChanTargetInfo(Error)
The provided link specifiers included some that, when we tried to parse them, proved to be misformed.
InvalidChanTargetInfo(ChanTargetDecodeError)
The provided link specifiers were inconsistent with one another, or missing key information.
ImpossibleRelayIds(RelayLookupError)
The provided relay identities (in the link specifiers) described a relay which, according to the network directory, cannot possibly exist.
Bug(Bug)
An internal error occurred.
Trait Implementations§
source§impl Clone for InvalidTarget
impl Clone for InvalidTarget
source§fn clone(&self) -> InvalidTarget
fn clone(&self) -> InvalidTarget
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InvalidTarget
impl Debug for InvalidTarget
source§impl Display for InvalidTarget
impl Display for InvalidTarget
source§impl Error for InvalidTarget
impl Error for InvalidTarget
source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Bug> for InvalidTarget
impl From<Bug> for InvalidTarget
source§impl From<ChanTargetDecodeError> for InvalidTarget
impl From<ChanTargetDecodeError> for InvalidTarget
source§fn from(source: ChanTargetDecodeError) -> Self
fn from(source: ChanTargetDecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for InvalidTarget
impl From<Error> for InvalidTarget
source§impl From<RelayLookupError> for InvalidTarget
impl From<RelayLookupError> for InvalidTarget
source§fn from(source: RelayLookupError) -> Self
fn from(source: RelayLookupError) -> Self
Converts to this type from the input type.
source§impl HasRetryTime for InvalidTarget
impl HasRetryTime for InvalidTarget
When to maybe retry with the same inputs that generated this error.
When returned from ipt_to_circtarget, that means this is when to retry
the same introduction point for the same hidden service.
“The same introduction point” means one with precisely the same set of identities and link specifiers.
source§fn retry_time(&self) -> RetryTime
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,
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§
impl !RefUnwindSafe for InvalidTarget
impl Send for InvalidTarget
impl Sync for InvalidTarget
impl Unpin for InvalidTarget
impl !UnwindSafe for InvalidTarget
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
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
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>
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)
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)
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.source§impl<E> ErrorReport for Ewhere
E: Error + 'static,
impl<E> ErrorReport for Ewhere E: Error + 'static,
source§fn report(&self) -> Report<ReportHelper<'_>>
fn report(&self) -> Report<ReportHelper<'_>>
Return an object that displays the error and its causes