pub enum DialError {
NoExpectedNodeId,
Resolve(Error),
Endpoint(Error),
Config(String),
Connect(ConnectError),
Connection(ConnectionError),
NoLeaf,
}Expand description
Why a dial failed.
Variants§
NoExpectedNodeId
The target names no expected node_id.
Resolve(Error)
The host resolved to no address, or not at all.
Endpoint(Error)
The local endpoint could not be made.
Config(String)
The TLS or QUIC configuration could not be built.
Connect(ConnectError)
The connection could not be started.
Connection(ConnectionError)
The QUIC or TLS handshake failed, the station’s certificate among the reasons: not exactly one, or not an ML-DSA-87 key.
NoLeaf
The station presented no certificate the connection could hand back.
Trait Implementations§
Source§impl Error for DialError
impl Error for DialError
1.30.0 · 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()
Auto Trait Implementations§
impl !Freeze for DialError
impl !RefUnwindSafe for DialError
impl !UnwindSafe for DialError
impl Send for DialError
impl Sync for DialError
impl Unpin for DialError
impl UnsafeUnpin 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