Struct StartHandshake
#[non_exhaustive]pub struct StartHandshake<IO> {
pub accepted: Accepted,
pub io: IO,
}
Expand description
An incoming connection received through LazyConfigAcceptor
.
This contains the generic IO
asynchronous transport,
ClientHello
data,
and all the state required to continue the TLS handshake (e.g. via
StartHandshake::into_stream
).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.accepted: Accepted
§io: IO
Implementations§
§impl<IO> StartHandshake<IO>where
IO: AsyncRead + AsyncWrite + Unpin,
impl<IO> StartHandshake<IO>where
IO: AsyncRead + AsyncWrite + Unpin,
pub fn from_parts(accepted: Accepted, transport: IO) -> StartHandshake<IO>
pub fn from_parts(accepted: Accepted, transport: IO) -> StartHandshake<IO>
Create a new object from an IO
transport and prior TLS metadata.
pub fn client_hello(&self) -> ClientHello<'_>
pub fn into_stream(self, config: Arc<ServerConfig>) -> Accept<IO> ⓘ
pub fn into_stream_with<F>(self, config: Arc<ServerConfig>, f: F) -> Accept<IO> ⓘwhere
F: FnOnce(&mut ServerConnection),
Trait Implementations§
Auto Trait Implementations§
impl<IO> Freeze for StartHandshake<IO>where
IO: Freeze,
impl<IO> !RefUnwindSafe for StartHandshake<IO>
impl<IO> Send for StartHandshake<IO>where
IO: Send,
impl<IO> Sync for StartHandshake<IO>where
IO: Sync,
impl<IO> Unpin for StartHandshake<IO>where
IO: Unpin,
impl<IO> !UnwindSafe for StartHandshake<IO>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more