Struct xstack_tls::TlsListener
source · pub struct TlsListener<Incoming> { /* private fields */ }Expand description
A listener over tls/yamux.
Implementations§
source§impl<Incoming> TlsListener<Incoming>
impl<Incoming> TlsListener<Incoming>
Trait Implementations§
source§impl<Incoming, S> DriverListener for TlsListener<Incoming>
impl<Incoming, S> DriverListener for TlsListener<Incoming>
source§fn accept<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<P2pConn>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn accept<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<P2pConn>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Accept next incoming connection between local and peer.
source§fn local_addr(&self) -> Result<Multiaddr>
fn local_addr(&self) -> Result<Multiaddr>
Returns the local address that this listener is bound to.
Auto Trait Implementations§
impl<Incoming> Freeze for TlsListener<Incoming>where
Incoming: Freeze,
impl<Incoming> !RefUnwindSafe for TlsListener<Incoming>
impl<Incoming> Send for TlsListener<Incoming>where
Incoming: Send,
impl<Incoming> Sync for TlsListener<Incoming>where
Incoming: Sync,
impl<Incoming> Unpin for TlsListener<Incoming>where
Incoming: Unpin,
impl<Incoming> !UnwindSafe for TlsListener<Incoming>
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