pub struct StartHandshake<S>(/* private fields */);Available on crate feature
tls only.Expand description
A TLS acceptor that has completed the initial handshake and allows access to
the ClientHello message.
Implementations§
Source§impl<S> StartHandshake<S>
impl<S> 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>, Error>>
pub fn into_stream( self, config: Arc<ServerConfig>, ) -> impl Future<Output = Result<TlsStream<S>, Error>>
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>, Error>>where
F: FnOnce(&mut ServerConnection),
pub fn into_stream_with<F>(
self,
config: Arc<ServerConfig>,
f: F,
) -> impl Future<Output = Result<TlsStream<S>, Error>>where
F: FnOnce(&mut ServerConnection),
Complete the TLS handshake and return a TlsStream if successful.
Auto Trait Implementations§
impl<S> Freeze for StartHandshake<S>
impl<S> !RefUnwindSafe for StartHandshake<S>
impl<S> !Send for StartHandshake<S>
impl<S> !Sync for StartHandshake<S>
impl<S> Unpin for StartHandshake<S>
impl<S> UnsafeUnpin for StartHandshake<S>
impl<S> !UnwindSafe 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more