type TlsHandshakeError<S> = HandshakeError<ClientHandshake<MaybeTlsStream<S>>>;

Aliased Type§

enum TlsHandshakeError<S> {
    Interrupted(MidHandshake<ClientHandshake<MaybeTlsStream<S>>>),
    Failure(Error),
}

Variants§

§

Interrupted(MidHandshake<ClientHandshake<MaybeTlsStream<S>>>)

Handshake was interrupted (would block).

§

Failure(Error)

Handshake failed.

Trait Implementations§

source§

impl<Role: HandshakeRole> Debug for HandshakeError<Role>

source§

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

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

impl<Role: HandshakeRole> Display for HandshakeError<Role>

source§

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

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

impl<Role: HandshakeRole> Error for HandshakeError<Role>

1.30.0 · 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, request: &mut Request<'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<Role: HandshakeRole> From<Error> for HandshakeError<Role>

source§

fn from(err: Error) -> Self

Converts to this type from the input type.