pub type UnixSocket = MioAdapter<UnixSocket>;
Expand description
Unix socket
Aliased Type§
struct UnixSocket(/* private fields */);
Implementations§
Source§impl UnixSocket
impl UnixSocket
Sourcepub fn stream() -> Result<UnixSocket>
pub fn stream() -> Result<UnixSocket>
Returns a new, unbound, Unix domain socket
Sourcepub fn connect<P: AsRef<Path> + ?Sized>(
self,
addr: &P,
) -> Result<(UnixStream, bool)>
pub fn connect<P: AsRef<Path> + ?Sized>( self, addr: &P, ) -> Result<(UnixStream, bool)>
Connect the socket to the specified address