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§
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, AcceptedAlert)>
Available on crate feature std
only.
pub fn into_connection( self, config: Arc<ServerConfig>, ) -> Result<ServerConnection, (Error, AcceptedAlert)>
std
only.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.
Trait Implementations§
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1344 bytes