#[non_exhaustive]pub enum DialError {
InvalidTargetPort {
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
Dns {
source: DnsError,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
Timeout {
source: Elapsed,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
Io {
source: Error,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
InvalidUrl {
url: Url,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
ProxyConnectInvalidStatus {
status: StatusCode,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
ProxyInvalidUrl {
proxy_url: Url,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
ProxyConnect {
source: Error,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
ProxyInvalidTlsServername {
proxy_hostname: String,
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
ProxyInvalidTargetPort {
backtrace: Option<Backtrace>,
span_trace: SpanTrace,
},
}Expand description
Errors that can occur while dialing the relay server.
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.
InvalidTargetPort
Dns
Available on non-
wasm_browser only.Timeout
Io
InvalidUrl
ProxyConnectInvalidStatus
ProxyInvalidUrl
ProxyConnect
ProxyInvalidTlsServername
ProxyInvalidTargetPort
Trait Implementations§
Source§impl Error for DialError
impl Error for DialError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for DialError
impl ErrorCompat for DialError
§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<DialError> for ConnectError
impl From<DialError> for ConnectError
Auto Trait Implementations§
impl Freeze for DialError
impl !RefUnwindSafe for DialError
impl Send for DialError
impl Sync for DialError
impl Unpin for DialError
impl !UnwindSafe for DialError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Mutably borrows from an owned value. Read more
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more