Struct monoio_rustls::ClientTlsStream
source · [−]pub struct ClientTlsStream<IO>(_);
Expand description
A wrapper around an underlying raw stream which implements the TLS protocol.
Trait Implementations
sourceimpl<IO> AsyncReadRent for TlsStream<IO> where
IO: AsyncReadRent + AsyncWriteRent,
impl<IO> AsyncReadRent for TlsStream<IO> where
IO: AsyncReadRent + AsyncWriteRent,
type ReadFuture<'a, T>
where
T: 'a,
IO: 'a = impl Future<Output = (Result<usize, Error>, T)>
type ReadFuture<'a, T>
where
T: 'a,
IO: 'a = impl Future<Output = (Result<usize, Error>, T)>
The future of read Result<size, buffer>
type ReadvFuture<'a, T>
where
T: 'a,
IO: 'a = impl Future<Output = (Result<usize, Error>, T)>
type ReadvFuture<'a, T>
where
T: 'a,
IO: 'a = impl Future<Output = (Result<usize, Error>, T)>
The future of readv Result<size, buffer>
sourcefn read<T: IoBufMut>(&mut self, buf: T) -> Self::ReadFuture<'_, T>
fn read<T: IoBufMut>(&mut self, buf: T) -> Self::ReadFuture<'_, T>
Same as read(2)
sourcefn readv<T: IoVecBufMut>(&mut self, buf: T) -> Self::ReadvFuture<'_, T>
fn readv<T: IoVecBufMut>(&mut self, buf: T) -> Self::ReadvFuture<'_, T>
Same as readv(2)
sourceimpl<IO> AsyncWriteRent for TlsStream<IO> where
IO: AsyncReadRent + AsyncWriteRent,
impl<IO> AsyncWriteRent for TlsStream<IO> where
IO: AsyncReadRent + AsyncWriteRent,
type WriteFuture<'a, T>
where
T: 'a,
IO: 'a = impl Future<Output = (Result<usize, Error>, T)>
type WriteFuture<'a, T>
where
T: 'a,
IO: 'a = impl Future<Output = (Result<usize, Error>, T)>
The future of write Result<size, buffer>
type WritevFuture<'a, T>
where
T: 'a,
IO: 'a = impl Future<Output = (Result<usize, Error>, T)>
type WritevFuture<'a, T>
where
T: 'a,
IO: 'a = impl Future<Output = (Result<usize, Error>, T)>
The future of writev Result<size, buffer>
type ShutdownFuture<'a>
where
IO: 'a = impl Future<Output = Result<(), Error>>
type ShutdownFuture<'a>
where
IO: 'a = impl Future<Output = Result<(), Error>>
The future of shutdown
sourcefn write<T: IoBuf>(&mut self, buf: T) -> Self::WriteFuture<'_, T>
fn write<T: IoBuf>(&mut self, buf: T) -> Self::WriteFuture<'_, T>
Same as write(2)
sourcefn writev<T: IoVecBuf>(&mut self, buf_vec: T) -> Self::WritevFuture<'_, T>
fn writev<T: IoVecBuf>(&mut self, buf_vec: T) -> Self::WritevFuture<'_, T>
Same as writev(2)
sourcefn shutdown(&mut self) -> Self::ShutdownFuture<'_>
fn shutdown(&mut self) -> Self::ShutdownFuture<'_>
Same as shutdown
Auto Trait Implementations
impl<IO> !RefUnwindSafe for TlsStream<IO>
impl<IO> Send for TlsStream<IO> where
IO: Send,
impl<IO> Sync for TlsStream<IO> where
IO: Sync,
impl<IO> Unpin for TlsStream<IO> where
IO: Unpin,
impl<IO> !UnwindSafe for TlsStream<IO>
Blanket Implementations
sourceimpl<A> AsyncReadRentExt for A where
A: AsyncReadRent + ?Sized,
impl<A> AsyncReadRentExt for A where
A: AsyncReadRent + ?Sized,
type ReadExactFuture = impl Future<Output = (Result<usize, Error>, T)>
type ReadExactFuture = impl Future<Output = (Result<usize, Error>, T)>
The future of Result<size, buffer>
sourcefn read_exact<T>(
&mut self,
buf: T
) -> <A as AsyncReadRentExt>::ReadExactFuture<'_, T> where
T: 'static + IoBufMut,
fn read_exact<T>(
&mut self,
buf: T
) -> <A as AsyncReadRentExt>::ReadExactFuture<'_, T> where
T: 'static + IoBufMut,
Read until buf capacity is fulfilled
type ReadVectoredExactFuture = impl Future<Output = (Result<usize, Error>, T)>
type ReadVectoredExactFuture = impl Future<Output = (Result<usize, Error>, T)>
The future of Result<size, buffer>
sourcefn read_vectored_exact<T>(
&mut self,
buf: T
) -> <A as AsyncReadRentExt>::ReadVectoredExactFuture<'_, T> where
T: 'static + IoVecBufMut,
fn read_vectored_exact<T>(
&mut self,
buf: T
) -> <A as AsyncReadRentExt>::ReadVectoredExactFuture<'_, T> where
T: 'static + IoVecBufMut,
Readv until buf capacity is fulfilled
sourceimpl<A> AsyncWriteRentExt for A where
A: AsyncWriteRent + ?Sized,
impl<A> AsyncWriteRentExt for A where
A: AsyncWriteRent + ?Sized,
type WriteExactFuture = impl Future<Output = (Result<usize, Error>, T)>
type WriteExactFuture = impl Future<Output = (Result<usize, Error>, T)>
The future of Result<size, buffer>
sourcefn write_all<T>(
&mut self,
buf: T
) -> <A as AsyncWriteRentExt>::WriteExactFuture<'_, T> where
T: 'static + IoBuf,
fn write_all<T>(
&mut self,
buf: T
) -> <A as AsyncWriteRentExt>::WriteExactFuture<'_, T> where
T: 'static + IoBuf,
Write all
type WriteVectoredExactFuture = impl Future<Output = (Result<usize, Error>, T)>
type WriteVectoredExactFuture = impl Future<Output = (Result<usize, Error>, T)>
The future of Result<size, buffer>
sourcefn write_vectored_all<T>(
&mut self,
buf: T
) -> <A as AsyncWriteRentExt>::WriteVectoredExactFuture<'_, T> where
T: 'static + IoVecBuf,
fn write_vectored_all<T>(
&mut self,
buf: T
) -> <A as AsyncWriteRentExt>::WriteVectoredExactFuture<'_, T> where
T: 'static + IoVecBuf,
Write all
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more