pub struct Accepted { /* private fields */ }展开描述
Represents 一个 ClientHello message received through the Acceptor。
Contains the state required 到 resume the connection through Accepted::into_connection()。
实现§
Source§impl Accepted
impl Accepted
Sourcepub fn client_hello(&self) -> ClientHello<'_>
pub fn client_hello(&self) -> ClientHello<'_>
获取 ClientHello 用于 this connection.
Sourcepub fn into_connection(
self,
config: Arc<ServerConfig>,
) -> Result<ServerConnection, (Error, AcceptedAlert)>
pub fn into_connection( self, config: Arc<ServerConfig>, ) -> Result<ServerConnection, (Error, AcceptedAlert)>
Convert the Accepted into 一个 ServerConnection。
Takes the state returned 从 Acceptor::accept() as well as the ServerConfig 并
sign::CertifiedKey that should be 用 用于 the session. Returns an error if
configuration-dependent validation of the received ClientHello message fails.
Trait 实现§
自动 Trait 实现§
impl Freeze for Accepted
impl !RefUnwindSafe for Accepted
impl Send for Accepted
impl Sync for Accepted
impl Unpin for Accepted
impl UnsafeUnpin for Accepted
impl !UnwindSafe for Accepted
Blanket 实现§
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 从 an owned value. 更多信息