Struct webrtc_dtls::listener::DTLSListener
source · [−]pub struct DTLSListener { /* private fields */ }
Expand description
DTLSListener represents a DTLS listener
Implementations
Trait Implementations
sourceimpl Listener for DTLSListener
impl Listener for DTLSListener
sourcefn accept<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(Arc<dyn Conn + Send + Sync>, SocketAddr), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
Self: '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.
sourcefn close<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: '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 !RefUnwindSafe for DTLSListener
impl Send for DTLSListener
impl Sync for DTLSListener
impl Unpin for DTLSListener
impl !UnwindSafe for DTLSListener
Blanket Implementations
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