[][src]Struct tls_api::TlsStream

pub struct TlsStream<S>(_);

Since Rust has no HKT, it is not possible to declare something like

This example is not tested
trait TlsConnector {
    type <S> TlsStream<S> : TlsStreamImpl;
}

So TlsStream is actually a box to concrete TLS implementation.

Methods

impl<S: 'static> TlsStream<S>[src]

Important traits for TlsStream<S>
pub fn new<I: TlsStreamImpl<S> + 'static>(imp: I) -> TlsStream<S>[src]

pub fn shutdown(&mut self) -> Result<()>[src]

pub fn get_mut(&mut self) -> &mut S[src]

pub fn get_ref(&self) -> &S[src]

pub fn get_alpn_protocol(&self) -> Option<Vec<u8>>[src]

Trait Implementations

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

impl<S> Read for TlsStream<S>[src]

impl<S> Write for TlsStream<S>[src]

Auto Trait Implementations

impl<S> !RefUnwindSafe for TlsStream<S>

impl<S> Send for TlsStream<S>

impl<S> Sync for TlsStream<S>

impl<S> Unpin for TlsStream<S>

impl<S> !UnwindSafe for TlsStream<S>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?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.