[][src]Struct websocket::client::async::TlsStream

pub struct TlsStream<S> { /* fields omitted */ }

A wrapper around an underlying raw stream which implements the TLS or SSL protocol.

A TlsStream<S> represents a handshake that has been completed successfully and both the server and the client are ready for receiving and sending data. Bytes read from a TlsStream are decrypted from S and bytes written to a TlsStream are encrypted when passing through to S.

Methods

impl<S> TlsStream<S>[src]

Important traits for TlsStream<S>
pub fn get_ref(&self) -> &TlsStream<S>[src]

Get access to the internal native_tls::TlsStream stream which also transitively allows access to S.

Important traits for TlsStream<S>
pub fn get_mut(&mut self) -> &mut TlsStream<S>[src]

Get mutable access to the internal native_tls::TlsStream stream which also transitively allows mutable access to S.

Trait Implementations

impl<S> AsyncWrite for TlsStream<S> where
    S: AsyncRead + AsyncWrite
[src]

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

impl<S> AsyncRead for TlsStream<S> where
    S: AsyncRead + AsyncWrite
[src]

impl<S> Read for TlsStream<S> where
    S: Read + Write
[src]

impl<S> Write for TlsStream<S> where
    S: Read + Write
[src]

Auto Trait Implementations

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

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

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

impl<S> UnwindSafe for TlsStream<S> where
    S: UnwindSafe

impl<S> RefUnwindSafe for TlsStream<S> where
    S: RefUnwindSafe

Blanket Implementations

impl<S> IntoWs for S where
    S: Stream + Send + 'static, 
[src]

type Stream = S

The type of stream this upgrade process is working with (TcpStream, etc.)

type Error = (S, Option<Incoming<(Method, RequestUri)>>, BytesMut, HyperIntoWsError)

An error value in case the stream is not asking for a websocket connection or something went wrong. It is common to also include the stream here. Read more

impl<S> IntoWs for S where
    S: Stream
[src]

type Stream = S

The type of stream this upgrade process is working with (TcpStream, etc.)

type Error = (S, Option<Incoming<(Method, RequestUri)>>, Option<Buffer>, HyperIntoWsError)

An error value in case the stream is not asking for a websocket connection or something went wrong. It is common to also include the stream here. Read more

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

impl<T> From<T> for 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.

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

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

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

impl<R> ReadBytesExt for R where
    R: Read + ?Sized

impl<W> WriteBytesExt for W where
    W: Write + ?Sized

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<S> Stream for S where
    S: Read + Write
[src]

impl<S> Stream for S where
    S: AsyncRead + AsyncWrite
[src]