Struct webrtc_dtls::listener::DTLSListener
source · pub struct DTLSListener { /* private fields */ }
Expand description
DTLSListener represents a DTLS listener
Implementations§
Trait Implementations§
source§impl Listener for DTLSListener
impl Listener for DTLSListener
source§fn accept<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn Conn + Send + Sync>, SocketAddr), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn accept<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn Conn + Send + Sync>, SocketAddr), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Accept waits for and returns the next connection to the listener. You have to either close or read on all connection that are created. Connection handshake will timeout using ConnectContextMaker in the Config. If you want to specify the timeout duration, set ConnectContextMaker.
source§fn close<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Close closes the listener. Any blocked Accept operations will be unblocked and return errors. Already Accepted connections are not closed.
Auto Trait Implementations§
impl Freeze for DTLSListener
impl !RefUnwindSafe for DTLSListener
impl Send for DTLSListener
impl Sync for DTLSListener
impl Unpin for DTLSListener
impl !UnwindSafe for DTLSListener
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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