pub struct TlsStream<IO> { /* private fields */ }
Expand description
The client end of a TLS connection. Can be used like any other bidirectional IO stream. Wraps the underlying TCP stream.
Implementations§
Trait Implementations§
source§impl<IO> AsyncRead for TlsStream<IO>where
IO: AsyncRead + AsyncWrite + Unpin,
impl<IO> AsyncRead for TlsStream<IO>where
IO: AsyncRead + AsyncWrite + Unpin,
source§impl<IO> AsyncWrite for TlsStream<IO>where
IO: AsyncRead + AsyncWrite + Unpin,
impl<IO> AsyncWrite for TlsStream<IO>where
IO: AsyncRead + AsyncWrite + Unpin,
source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
Attempt to write bytes from
buf
into the object. Read moresource§fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempt to flush the object, ensuring that any buffered data reach
their destination. Read more