#[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§
Source§impl<IO> StartHandshake<IO>
impl<IO> StartHandshake<IO>
Sourcepub fn from_parts(accepted: Accepted, transport: IO) -> Self
pub fn from_parts(accepted: Accepted, transport: IO) -> Self
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§
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