ktls 6.0.2

Configures kTLS for tokio-rustls client and server connections.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::{io, task};

pub trait AsyncReadReady {
    /// cf. https://docs.rs/tokio/latest/tokio/net/struct.TcpStream.html#method.poll_read_ready
    fn poll_read_ready(&self, cx: &mut task::Context<'_>) -> task::Poll<io::Result<()>>;
}

impl AsyncReadReady for tokio::net::TcpStream {
    fn poll_read_ready(&self, cx: &mut task::Context<'_>) -> task::Poll<io::Result<()>> {
        tokio::net::TcpStream::poll_read_ready(self, cx)
    }
}