pub struct Accepted { /* private fields */ }
Expand description

Represents a ClientHello message received through the Acceptor.

Contains the state required to resume the connection through Accepted::into_connection().

Implementations

Get the ClientHello for this connection.

Convert the Accepted into a ServerConnection.

Takes the state returned from Acceptor::accept() as well as the ServerConfig and sign::CertifiedKey that should be used for the session. Returns an error if configuration-dependent validation of the received ClientHello message fails.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.