pub struct StreamGuard<'a, T: Read + Write + 'a>(/* private fields */);
Expand description
A guard around a locked inner TlsStream
.
Methods from Deref<Target = TlsStream<T>>§
Sourcepub fn buffered_read_size(&self) -> Result<usize, Error>
pub fn buffered_read_size(&self) -> Result<usize, Error>
Returns the number of bytes that can be read without resulting in any network calls.
Sourcepub fn peer_certificate(&self) -> Result<Option<Certificate>, Error>
pub fn peer_certificate(&self) -> Result<Option<Certificate>, Error>
Returns the peer’s leaf certificate, if available.
Trait Implementations§
Source§impl<'a, T> Deref for StreamGuard<'a, T>
impl<'a, T> Deref for StreamGuard<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for StreamGuard<'a, T>
impl<'a, T> RefUnwindSafe 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> Unpin for StreamGuard<'a, T>
impl<'a, T> UnwindSafe for StreamGuard<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more