pub struct TlsListener { /* private fields */ }
Expand description
This structure is a handle to a listening socket returned by
TlsServer::listen
. Call TlsListener::stream_accept
to accept a new
client connection.
Implementations§
Source§impl TlsListener
impl TlsListener
Sourcepub async fn stream_accept(&self) -> Result<(TcpClientStream, SocketAddr)>
pub async fn stream_accept(&self) -> Result<(TcpClientStream, SocketAddr)>
Call this method to accept the next client, this will return a
[TcpClientStream
], which represents a client connection that has not
yet performed TLS negotiation
Auto Trait Implementations§
impl !Freeze for TlsListener
impl !RefUnwindSafe for TlsListener
impl Send for TlsListener
impl Sync for TlsListener
impl Unpin for TlsListener
impl !UnwindSafe for TlsListener
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