pub enum DialError {
InvalidAddress(String),
TlsConfig(String),
Transport(TransportError),
}Expand description
Why a QUIC dial did not produce a connection.
Separate from TransportError so the two failures that happen before any
packet is sent — a bad address, a TLS config this machine rejects — stay
distinguishable from a peer that would not talk to us.
Variants§
InvalidAddress(String)
addr is not a host:port this machine can resolve to a socket address.
TlsConfig(String)
The TLS client configuration could not be built.
Transport(TransportError)
The dial itself failed.
Trait Implementations§
Source§impl Error for DialError
impl Error for DialError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<DialError> for ConnectionError
impl From<DialError> for ConnectionError
Source§impl From<TransportError> for DialError
impl From<TransportError> for DialError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DialError
impl RefUnwindSafe for DialError
impl Send for DialError
impl Sync for DialError
impl Unpin for DialError
impl UnsafeUnpin for DialError
impl UnwindSafe for DialError
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