Struct hyper_native_tls::StreamGuard [] [src]

pub struct StreamGuard<'a, T: Read + Write + 'a>(_);

A guard around a locked inner TlsStream.

Methods from Deref<Target = TlsStream<T>>

Returns a shared reference to the inner stream.

Returns a mutable reference to the inner stream.

Returns the number of bytes that can be read without resulting in any network calls.

Shuts down the TLS session.

Trait Implementations

impl<'a, T> Deref for StreamGuard<'a, T> where
    T: Read + Write + 'a, 
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<'a, T> DerefMut for StreamGuard<'a, T> where
    T: Read + Write + 'a, 
[src]

The method called to mutably dereference a value