[][src]Struct tokio_rustls::server::TlsStream

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]

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> AsyncRead 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]

Note: that it does not guarantee the final data to be sent. To be cautious, you must manually call flush.

impl<IO: Debug> Debug for TlsStream<IO>[src]

impl<T> From<TlsStream<T>> for TlsStream<T>[src]

Auto Trait Implementations

impl<IO> !RefUnwindSafe for TlsStream<IO>

impl<IO> Send for TlsStream<IO> where
    IO: Send

impl<IO> Sync for TlsStream<IO> where
    IO: Sync

impl<IO> Unpin for TlsStream<IO> where
    IO: Unpin

impl<IO> !UnwindSafe for TlsStream<IO>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<R> AsyncReadExt for R where
    R: AsyncRead + ?Sized
[src]

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.