pub struct StartHandshake<S: Splittable>(/* private fields */);Available on crate feature
rustls only.Expand description
A TLS acceptor that has completed the initial handshake and allows access to
the ClientHello message.
Implementations§
Source§impl<S: Splittable + 'static> StartHandshake<S>
impl<S: Splittable + 'static> StartHandshake<S>
Sourcepub fn client_hello(&self) -> ClientHello<'_>
pub fn client_hello(&self) -> ClientHello<'_>
Get the ClientHello message from the initial handshake.
Sourcepub fn into_stream(
self,
config: Arc<ServerConfig>,
) -> impl Future<Output = Result<TlsStream<S>>>
pub fn into_stream( self, config: Arc<ServerConfig>, ) -> impl Future<Output = Result<TlsStream<S>>>
Complete the TLS handshake and return a TlsStream if successful.
Sourcepub fn into_stream_with<F>(
self,
config: Arc<ServerConfig>,
f: F,
) -> impl Future<Output = Result<TlsStream<S>>>where
F: FnOnce(&mut ServerConnection),
pub fn into_stream_with<F>(
self,
config: Arc<ServerConfig>,
f: F,
) -> impl Future<Output = Result<TlsStream<S>>>where
F: FnOnce(&mut ServerConnection),
Complete the TLS handshake and return a TlsStream if successful.
Auto Trait Implementations§
impl<S> !RefUnwindSafe for StartHandshake<S>
impl<S> !Send for StartHandshake<S>
impl<S> !Sync for StartHandshake<S>
impl<S> !UnwindSafe for StartHandshake<S>
impl<S> Freeze for StartHandshake<S>
impl<S> Unpin for StartHandshake<S>
impl<S> UnsafeUnpin for StartHandshake<S>
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