Struct gjio::SocketListener [] [src]

pub struct SocketListener {
    // some fields omitted
}

A server socket that can accept connections.

Methods

impl SocketListener
[src]

fn local_addr(&self) -> Result<SocketAddrError>

Gets the local address. Useful if you didn't specify a port when constructing the SocketAddress.

fn accept(&self) -> Promise<SocketStreamError>

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