Struct tokio_utp::UtpListener
[−]
[src]
pub struct UtpListener { /* fields omitted */ }
Listens for incoming uTP connections.
Methods
impl UtpListener
[src]
fn local_addr(&self) -> Result<SocketAddr>
[src]
Get the local address that the listener is bound to.
fn accept(&self) -> Result<UtpStream>
[src]
Receive a new inbound connection.
This function will also advance the state of all associated connections.
fn incoming(self) -> Incoming
[src]
Convert the UtpListener
to a stream of incoming connections.
Trait Implementations
impl Debug for UtpListener
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
Formats the value using the given formatter.