pub struct TlsStream<S> { /* private fields */ }Expand description
A wrapper around an underlying raw stream which implements the TLS or SSL protocol.
A TlsStream<S> represents a handshake that has been completed successfully
and both the server and the client are ready for receiving and sending
data. Bytes read from a TlsStream are decrypted from S and bytes written
to a TlsStream are encrypted when passing through to S.
Implementations§
Source§impl<S> TlsStream<S>
impl<S> TlsStream<S>
pub fn into_inner(self) -> S
Trait Implementations§
Source§impl<S: AsyncReadRent> AsyncReadRent for TlsStream<S>
impl<S: AsyncReadRent> AsyncReadRent for TlsStream<S>
Source§impl<S: AsyncWriteRent> AsyncWriteRent for TlsStream<S>
impl<S: AsyncWriteRent> AsyncWriteRent for TlsStream<S>
impl<S: Split> Split for TlsStream<S>
Auto Trait Implementations§
impl<S> Freeze for TlsStream<S>where
S: Freeze,
impl<S> !RefUnwindSafe for TlsStream<S>
impl<S> !Send for TlsStream<S>
impl<S> !Sync for TlsStream<S>
impl<S> Unpin for TlsStream<S>where
S: Unpin,
impl<S> !UnwindSafe for TlsStream<S>
Blanket Implementations§
Source§impl<A> AsyncReadRentExt for Awhere
A: AsyncReadRent + ?Sized,
impl<A> AsyncReadRentExt for Awhere
A: AsyncReadRent + ?Sized,
Source§async fn read_exact<T>(&mut self, buf: T) -> (Result<usize, Error>, T)where
T: IoBufMut + 'static,
async fn read_exact<T>(&mut self, buf: T) -> (Result<usize, Error>, T)where
T: IoBufMut + 'static,
Read until buf capacity is fulfilled
Source§async fn read_vectored_exact<T>(&mut self, buf: T) -> (Result<usize, Error>, T)where
T: IoVecBufMut + 'static,
async fn read_vectored_exact<T>(&mut self, buf: T) -> (Result<usize, Error>, T)where
T: IoVecBufMut + 'static,
Readv until buf capacity is fulfilled
Source§impl<A> AsyncWriteRentExt for Awhere
A: AsyncWriteRent + ?Sized,
impl<A> AsyncWriteRentExt for Awhere
A: AsyncWriteRent + ?Sized,
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
Source§impl<T> Splitable for Twhere
T: Split + AsyncWriteRent,
impl<T> Splitable for Twhere
T: Split + AsyncWriteRent,
Source§type OwnedRead = OwnedReadHalf<T>
type OwnedRead = OwnedReadHalf<T>
Owned Read Split
Source§type OwnedWrite = OwnedWriteHalf<T>
type OwnedWrite = OwnedWriteHalf<T>
Owned Write Split
Source§fn into_split(
self,
) -> (<T as Splitable>::OwnedRead, <T as Splitable>::OwnedWrite)
fn into_split( self, ) -> (<T as Splitable>::OwnedRead, <T as Splitable>::OwnedWrite)
Split into owned parts