Struct mio::unix::UnixListener
[−]
[src]
pub struct UnixListener { /* fields omitted */ }
Methods
impl UnixListener
[src]
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 Debug for UnixListener
[src]
impl Evented for UnixListener
[src]
fn register(
&self,
selector: &mut Selector,
token: Token,
interest: EventSet,
opts: PollOpt
) -> Result<()>
&self,
selector: &mut Selector,
token: Token,
interest: EventSet,
opts: PollOpt
) -> Result<()>
fn reregister(
&self,
selector: &mut Selector,
token: Token,
interest: EventSet,
opts: PollOpt
) -> Result<()>
&self,
selector: &mut Selector,
token: Token,
interest: EventSet,
opts: PollOpt
) -> Result<()>
fn deregister(&self, selector: &mut Selector) -> Result<()>
impl TryAccept for UnixListener
[src]
type Output = UnixStream
fn accept(&self) -> Result<Option<UnixStream>>
impl From<UnixSocket> for UnixListener
[src]
fn from(sys: UnixSocket) -> UnixListener
Performs the conversion.
impl AsRawFd for UnixListener
[src]
impl FromRawFd for UnixListener
[src]
unsafe fn from_raw_fd(fd: RawFd) -> UnixListener
Constructs a new instance of Self
from the given raw file descriptor. Read more