Type Alias UnixSocket

Source
pub type UnixSocket = MioAdapter<UnixSocket>;
Expand description

Unix socket

Aliased Type§

struct UnixSocket(/* private fields */);

Implementations§

Source§

impl UnixSocket

Source

pub fn stream() -> Result<UnixSocket>

Returns a new, unbound, Unix domain socket

Source

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

Connect the socket to the specified address

Source

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

Bind the socket to the specified address

Source

pub fn try_clone(&self) -> Result<Self>

Clone