Skip to main content

peek_client_hello_from_input

Function peek_client_hello_from_input 

pub async fn peek_client_hello_from_input<PeekableInput>(
    input: PeekableInput,
    timeout: Option<Duration>,
) -> Result<(<PeekableInput as PeekIoProvider>::Mapped<PrefixedIo<HeapReader, <PeekableInput as PeekIoProvider>::PeekIo>>, Option<ClientHello>), Error>
where PeekableInput: PeekIoProvider, <PeekableInput as PeekIoProvider>::PeekIo: Unpin,
Expand description

Functional API to try to peek TLS:CH from an existing I/O input, returning the stream as-is with the read data prefixed from memory.

Use PeekTlsClientHelloService if you prefer it as a rama Service instead.