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

Important traits for &'a mut R

Returns a shared reference to the inner stream.

Important traits for &'a mut R

Returns a mutable reference to the inner stream.

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

Returns the peer's leaf certificate, if available.

Returns the tls-server-end-point channel binding data as defined in RFC 5929.

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.

Dereferences the value.

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

Mutably dereferences the value.

Auto Trait Implementations

impl<'a, T> !Send for StreamGuard<'a, T>

impl<'a, T> Sync for StreamGuard<'a, T> where
    T: Sync