Lines Matching refs:net
2 use crate::net::SocketAddr;
4 use std::os::unix::net;
7 pub(crate) fn bind(_: &Path) -> io::Result<net::UnixDatagram> { in bind()
11 pub(crate) fn unbound() -> io::Result<net::UnixDatagram> { in unbound()
15 pub(crate) fn pair() -> io::Result<(net::UnixDatagram, net::UnixDatagram)> { in pair()
19 pub(crate) fn local_addr(_: &net::UnixDatagram) -> io::Result<SocketAddr> { in local_addr()
23 pub(crate) fn peer_addr(_: &net::UnixDatagram) -> io::Result<SocketAddr> { in peer_addr()
28 _: &net::UnixDatagram, in recv_from()
36 use crate::net::{SocketAddr, UnixStream};
38 use std::os::unix::net;
41 pub(crate) fn bind(_: &Path) -> io::Result<net::UnixListener> { in bind()
45 pub(crate) fn accept(_: &net::UnixListener) -> io::Result<(UnixStream, SocketAddr)> { in accept()
49 pub(crate) fn local_addr(_: &net::UnixListener) -> io::Result<SocketAddr> { in local_addr()
55 use crate::net::SocketAddr;
57 use std::os::unix::net;
60 pub(crate) fn connect(_: &Path) -> io::Result<net::UnixStream> { in connect()
64 pub(crate) fn pair() -> io::Result<(net::UnixStream, net::UnixStream)> { in pair()
68 pub(crate) fn local_addr(_: &net::UnixStream) -> io::Result<SocketAddr> { in local_addr()
72 pub(crate) fn peer_addr(_: &net::UnixStream) -> io::Result<SocketAddr> { in peer_addr()