Struct rotor::mio::unix::UnixSocket [] [src]

pub struct UnixSocket {
    // some fields omitted
}

Methods

impl UnixSocket

fn stream() -> Result<UnixSocket, Error>

Returns a new, unbound, non-blocking Unix domain socket

fn connect<P>(self, addr: &P) -> Result<(UnixStream, bool), Error> where P: AsRef<Path> + ?Sized

Connect the socket to the specified address

fn bind<P>(&self, addr: &P) -> Result<(), Error> where P: AsRef<Path> + ?Sized

Bind the socket to the specified address

fn listen(self, backlog: usize) -> Result<UnixListener, Error>

Listen for incoming requests

fn try_clone(&self) -> Result<UnixSocket, Error>

Trait Implementations

impl FromRawFd for UnixSocket

unsafe fn from_raw_fd(fd: i32) -> UnixSocket

impl AsRawFd for UnixSocket

fn as_raw_fd(&self) -> i32

impl From<UnixSocket> for UnixSocket

fn from(sys: UnixSocket) -> UnixSocket

impl Evented for UnixSocket

fn register(&self, selector: &mut Selector, token: Token, interest: EventSet, opts: PollOpt) -> Result<(), Error>

fn reregister(&self, selector: &mut Selector, token: Token, interest: EventSet, opts: PollOpt) -> Result<(), Error>

fn deregister(&self, selector: &mut Selector) -> Result<(), Error>

Derived Implementations

impl Debug for UnixSocket

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>