Struct hyper_native_tls::StreamGuard [−][src]
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
pub fn get_ref(&self) -> &S
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
pub fn get_mut(&mut self) -> &mut S
Returns a mutable reference to the inner stream.
pub fn buffered_read_size(&self) -> Result<usize, Error>
[src]
pub fn buffered_read_size(&self) -> Result<usize, Error>
Returns the number of bytes that can be read without resulting in any network calls.
pub fn peer_certificate(&self) -> Result<Option<Certificate>, Error>
[src]
pub fn peer_certificate(&self) -> Result<Option<Certificate>, Error>
Returns the peer's leaf certificate, if available.
pub fn tls_server_end_point(&self) -> Result<Option<Vec<u8>>, Error>
[src]
pub fn tls_server_end_point(&self) -> Result<Option<Vec<u8>>, Error>
Returns the tls-server-end-point channel binding data as defined in RFC 5929.
pub fn shutdown(&mut self) -> Result<(), Error>
[src]
pub fn shutdown(&mut self) -> Result<(), Error>
Shuts down the TLS session.
Trait Implementations
impl<'a, T> Deref for StreamGuard<'a, T> where
T: Read + Write + 'a,
[src]
impl<'a, T> Deref for StreamGuard<'a, T> where
T: Read + Write + 'a,
type Target = TlsStream<T>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl<'a, T> DerefMut for StreamGuard<'a, T> where
T: Read + Write + 'a,
[src]
impl<'a, T> DerefMut for StreamGuard<'a, T> where
T: Read + Write + 'a,
Auto Trait Implementations
impl<'a, T> !Send for StreamGuard<'a, T>
impl<'a, T> !Send for StreamGuard<'a, T>
impl<'a, T> Sync for StreamGuard<'a, T> where
T: Sync,
impl<'a, T> Sync for StreamGuard<'a, T> where
T: Sync,