Struct gjio::SocketListener
[−]
[src]
pub struct SocketListener { /* fields omitted */ }
A server socket that can accept connections.
Methods
impl SocketListener
[src]
fn local_addr(&self) -> Result<SocketAddr, Error>
Gets the local address. Useful if you didn't specify a port when constructing
the SocketAddress
.
fn accept(&self) -> Promise<SocketStream, Error>
Trait Implementations
impl Clone for SocketListener
[src]
fn clone(&self) -> SocketListener
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more