Struct mio::unix::UnixSocket
[−]
[src]
pub struct UnixSocket { // some fields omitted }
Methods
impl UnixSocket
fn stream() -> Result<UnixSocket>
Returns a new, unbound, non-blocking Unix domain socket
fn connect<P: AsRef<Path> + ?Sized>(self, addr: &P) -> Result<(UnixStream, bool)>
Connect the socket to the specified address
fn bind<P: AsRef<Path> + ?Sized>(&self, addr: &P) -> Result<()>
Bind the socket to the specified address
fn listen(self, backlog: usize) -> Result<UnixListener>
Listen for incoming requests