Struct mio::deprecated::unix::UnixSocket
[−]
[src]
pub struct UnixSocket { /* fields omitted */ }
Methods
impl UnixSocket
[src]
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)>
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
fn try_clone(&self) -> Result<UnixSocket>
Trait Implementations
impl Debug for UnixSocket
[src]
impl Evented for UnixSocket
[src]
fn register(
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
fn reregister(
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
&self,
poll: &Poll,
token: Token,
interest: Ready,
opts: PollOpt
) -> Result<()>
fn deregister(&self, poll: &Poll) -> Result<()>
impl From<UnixSocket> for UnixSocket
[src]
fn from(sys: UnixSocket) -> UnixSocket
Performs the conversion.
impl IntoRawFd for UnixSocket
[src]
fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read more
impl AsRawFd for UnixSocket
[src]
impl FromRawFd for UnixSocket
[src]
unsafe fn from_raw_fd(fd: RawFd) -> UnixSocket
Constructs a new instance of Self
from the given raw file descriptor. Read more