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 Rpub fn get_ref(&self) -> &S
[src]
ⓘImportant traits for &'a mut R
Returns a shared reference to the inner stream.
ⓘImportant traits for &'a mut Rpub fn get_mut(&mut self) -> &mut S
[src]
ⓘImportant traits for &'a mut R
Returns a mutable reference to the inner stream.
pub fn buffered_read_size(&self) -> Result<usize, Error>
[src]
Returns the number of bytes that can be read without resulting in any network calls.
pub fn shutdown(&mut self) -> Result<(), Error>
[src]
Shuts down the TLS session.
Trait Implementations
impl<'a, T> Deref for StreamGuard<'a, T> where
T: Read + Write + 'a,
[src]
T: Read + Write + 'a,
type Target = TlsStream<T>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl<'a, T> DerefMut for StreamGuard<'a, T> where
T: Read + Write + 'a,
[src]
T: Read + Write + 'a,