Struct trillium_rustls::RustlsServerTransport
source · pub struct RustlsServerTransport<T>(/* private fields */);
Expand description
Transport for rustls server acceptor
Implementations§
source§impl<T> RustlsServerTransport<T>
impl<T> RustlsServerTransport<T>
sourcepub fn inner_transport(&self) -> &T
pub fn inner_transport(&self) -> &T
access the contained transport type (eg TcpStream)
sourcepub fn inner_transport_mut(&mut self) -> &mut T
pub fn inner_transport_mut(&mut self) -> &mut T
mutably access the contained transport type (eg TcpStream)
Trait Implementations§
source§impl<T> AsMut<ServerConnection> for RustlsServerTransport<T>
impl<T> AsMut<ServerConnection> for RustlsServerTransport<T>
source§impl<T> AsRef<ServerConnection> for RustlsServerTransport<T>
impl<T> AsRef<ServerConnection> for RustlsServerTransport<T>
source§impl<T: AsyncRead + AsyncWrite + Unpin> AsyncRead for RustlsServerTransport<T>
impl<T: AsyncRead + AsyncWrite + Unpin> AsyncRead for RustlsServerTransport<T>
source§impl<T: AsyncWrite + AsyncRead + Unpin> AsyncWrite for RustlsServerTransport<T>
impl<T: AsyncWrite + AsyncRead + Unpin> AsyncWrite for RustlsServerTransport<T>
source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize>>
Attempt to write bytes from
buf
into the object. Read moresource§fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
fn poll_flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<()>>
Attempt to flush the object, ensuring that any buffered data reach
their destination. Read more
source§impl<T: Debug> Debug for RustlsServerTransport<T>
impl<T: Debug> Debug for RustlsServerTransport<T>
source§impl<T> From<RustlsServerTransport<T>> for TlsStream<T>
impl<T> From<RustlsServerTransport<T>> for TlsStream<T>
source§fn from(RustlsServerTransport: RustlsServerTransport<T>) -> Self
fn from(RustlsServerTransport: RustlsServerTransport<T>) -> Self
Converts to this type from the input type.
source§impl<T> From<TlsStream<T>> for RustlsServerTransport<T>
impl<T> From<TlsStream<T>> for RustlsServerTransport<T>
source§impl<T: Transport> Transport for RustlsServerTransport<T>
impl<T: Transport> Transport for RustlsServerTransport<T>
source§fn peer_addr(&self) -> Result<Option<SocketAddr>>
fn peer_addr(&self) -> Result<Option<SocketAddr>>
Returns the socket address of the remote peer of this transport. Read more
source§fn set_linger(&mut self, linger: Option<Duration>) -> Result<(), Error>
fn set_linger(&mut self, linger: Option<Duration>) -> Result<(), Error>
Sets the linger duration of this transport by setting the
SO_LINGER
option Read moreAuto Trait Implementations§
impl<T> Freeze for RustlsServerTransport<T>where
T: Freeze,
impl<T> !RefUnwindSafe for RustlsServerTransport<T>
impl<T> Send for RustlsServerTransport<T>where
T: Send,
impl<T> Sync for RustlsServerTransport<T>where
T: Sync,
impl<T> Unpin for RustlsServerTransport<T>where
T: Unpin,
impl<T> !UnwindSafe for RustlsServerTransport<T>
Blanket Implementations§
§impl<R> AsyncReadExt for Rwhere
R: AsyncRead + ?Sized,
impl<R> AsyncReadExt for Rwhere
R: AsyncRead + ?Sized,
§fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadFuture<'a, Self>where
Self: Unpin,
fn read<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadFuture<'a, Self>where
Self: Unpin,
Reads some bytes from the byte stream. Read more
§fn read_vectored<'a>(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>],
) -> ReadVectoredFuture<'a, Self>where
Self: Unpin,
fn read_vectored<'a>(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>],
) -> ReadVectoredFuture<'a, Self>where
Self: Unpin,
§fn read_to_end<'a>(
&'a mut self,
buf: &'a mut Vec<u8>,
) -> ReadToEndFuture<'a, Self>where
Self: Unpin,
fn read_to_end<'a>(
&'a mut self,
buf: &'a mut Vec<u8>,
) -> ReadToEndFuture<'a, Self>where
Self: Unpin,
§fn read_to_string<'a>(
&'a mut self,
buf: &'a mut String,
) -> ReadToStringFuture<'a, Self>where
Self: Unpin,
fn read_to_string<'a>(
&'a mut self,
buf: &'a mut String,
) -> ReadToStringFuture<'a, Self>where
Self: Unpin,
§fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExactFuture<'a, Self>where
Self: Unpin,
fn read_exact<'a>(&'a mut self, buf: &'a mut [u8]) -> ReadExactFuture<'a, Self>where
Self: Unpin,
Reads the exact number of bytes required to fill
buf
. Read more§fn take(self, limit: u64) -> Take<Self>where
Self: Sized,
fn take(self, limit: u64) -> Take<Self>where
Self: Sized,
Creates an adapter which will read at most
limit
bytes from it. Read more§impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
impl<W> AsyncWriteExt for Wwhere
W: AsyncWrite + ?Sized,
§fn write<'a>(&'a mut self, buf: &'a [u8]) -> WriteFuture<'a, Self>where
Self: Unpin,
fn write<'a>(&'a mut self, buf: &'a [u8]) -> WriteFuture<'a, Self>where
Self: Unpin,
Writes some bytes into the byte stream. Read more
§fn write_vectored<'a>(
&'a mut self,
bufs: &'a [IoSlice<'a>],
) -> WriteVectoredFuture<'a, Self>where
Self: Unpin,
fn write_vectored<'a>(
&'a mut self,
bufs: &'a [IoSlice<'a>],
) -> WriteVectoredFuture<'a, Self>where
Self: Unpin,
§fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> WriteAllFuture<'a, Self>where
Self: Unpin,
fn write_all<'a>(&'a mut self, buf: &'a [u8]) -> WriteAllFuture<'a, Self>where
Self: Unpin,
Writes an entire buffer into the byte stream. Read more
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