Struct futures_rustls::server::TlsStream [−][src]
pub struct TlsStream<IO> { /* fields omitted */ }A wrapper around an underlying raw stream which implements the TLS or SSL protocol.
Implementations
impl<IO> TlsStream<IO>[src]
impl<IO> TlsStream<IO>[src]pub fn get_ref(&self) -> (&IO, &ServerSession)[src]
pub fn get_mut(&mut self) -> (&mut IO, &mut ServerSession)[src]
pub fn into_inner(self) -> (IO, ServerSession)[src]
Trait Implementations
impl<IO> AsyncWrite for TlsStream<IO> where
IO: AsyncRead + AsyncWrite + Unpin, [src]
impl<IO> AsyncWrite for TlsStream<IO> where
IO: AsyncRead + AsyncWrite + Unpin, [src]fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
Note: that it does not guarantee the final data to be sent.
To be cautious, you must manually call flush.
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>[src]
fn poll_close(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>[src]
pub fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize, Error>>[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize, Error>>
Auto Trait Implementations
impl<IO> !RefUnwindSafe for TlsStream<IO>
impl<IO> Send for TlsStream<IO> where
IO: Send,
IO: Send,
impl<IO> Sync for TlsStream<IO> where
IO: Sync,
IO: Sync,
impl<IO> Unpin for TlsStream<IO> where
IO: Unpin,
IO: Unpin,