Struct rustls::server::server_conn::Accepted
source · pub struct Accepted {
connection: ConnectionCommon<ServerConnectionData>,
message: Message,
sig_schemes: Vec<SignatureScheme>,
}
Expand description
Represents a ClientHello
message received through the Acceptor
.
Contains the state required to resume the connection through Accepted::into_connection()
.
Fields§
§connection: ConnectionCommon<ServerConnectionData>
§message: Message
§sig_schemes: Vec<SignatureScheme>
Implementations§
source§impl Accepted
impl Accepted
sourcepub fn client_hello(&self) -> ClientHello<'_>
pub fn client_hello(&self) -> ClientHello<'_>
Get the ClientHello
for this connection.
sourcepub fn into_connection(
self,
config: Arc<ServerConfig>,
) -> Result<ServerConnection, Error>
pub fn into_connection( self, config: Arc<ServerConfig>, ) -> Result<ServerConnection, Error>
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.
fn client_hello_payload(message: &Message) -> &ClientHelloPayload
Auto Trait Implementations§
impl Freeze for Accepted
impl !RefUnwindSafe for Accepted
impl Send for Accepted
impl Sync for Accepted
impl Unpin for Accepted
impl !UnwindSafe for Accepted
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