Struct mio::unix::UnixListener [] [src]

pub struct UnixListener {
    // some fields omitted
}

Methods

impl UnixListener

fn bind<P: AsRef<Path> + ?Sized>(addr: &P) -> Result<UnixListener>

fn accept(&self) -> Result<Option<UnixStream>>

fn try_clone(&self) -> Result<UnixListener>

Trait Implementations

impl Evented for UnixListener

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

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

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

impl TryAccept for UnixListener

type Output = UnixStream

fn accept(&self) -> Result<Option<UnixStream>>

impl From<UnixSocket> for UnixListener

fn from(sys: UnixSocket) -> UnixListener

impl AsRawFd for UnixListener

fn as_raw_fd(&self) -> RawFd

impl FromRawFd for UnixListener

unsafe fn from_raw_fd(fd: RawFd) -> UnixListener

Derived Implementations

impl Debug for UnixListener

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