Home
last modified time | relevance | path

Searched defs:SocketAddrAny (Results 1 – 9 of 9) sorted by relevance

/third_party/rust/crates/rustix/src/net/
Dsocket_addr_any.rs25 pub enum SocketAddrAny { enum
35 impl From<SocketAddrV4> for SocketAddrAny { implementation
42 impl From<SocketAddrV6> for SocketAddrAny { implementation
50 impl From<SocketAddrUnix> for SocketAddrAny { implementation
57 impl SocketAddrAny { implementation
94 impl fmt::Debug for SocketAddrAny { implementation
Dsocket.rs366 pub fn acceptfrom<Fd: AsFd>(sockfd: Fd) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom()
387 ) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom_with()
421 pub fn getsockname<Fd: AsFd>(sockfd: Fd) -> io::Result<SocketAddrAny> { in getsockname()
439 pub fn getpeername<Fd: AsFd>(sockfd: Fd) -> io::Result<Option<SocketAddrAny>> { in getpeername()
Dsend_recv.rs63 ) -> io::Result<(usize, Option<SocketAddrAny>)> { in recvfrom()
118 addr: &SocketAddrAny, in sendto_any()
127 addr: &SocketAddrAny, in _sendto_any()
/third_party/rust/crates/rustix/src/backend/libc/net/
Dread_sockaddr.rs97 ) -> io::Result<SocketAddrAny> { in read_sockaddr()
177 ) -> Option<SocketAddrAny> { in maybe_read_sockaddr_os()
194 ) -> SocketAddrAny { in read_sockaddr_os()
204 ) -> SocketAddrAny { in inner_read_sockaddr_os()
Dsyscalls.rs58 ) -> io::Result<(usize, Option<SocketAddrAny>)> { in recvfrom()
274 pub(crate) fn acceptfrom(sockfd: BorrowedFd<'_>) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom()
301 ) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom_with()
331 ) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom_with()
341 pub(crate) fn getsockname(sockfd: BorrowedFd<'_>) -> io::Result<SocketAddrAny> { in getsockname()
355 pub(crate) fn getpeername(sockfd: BorrowedFd<'_>) -> io::Result<Option<SocketAddrAny>> { in getpeername()
Dwrite_sockaddr.rs13 addr: &SocketAddrAny, in write_sockaddr()
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
Dread_sockaddr.rs55 ) -> io::Result<SocketAddrAny> { in read_sockaddr()
116 ) -> Option<SocketAddrAny> { in maybe_read_sockaddr_os()
129 pub(crate) unsafe fn read_sockaddr_os(storage: *const c::sockaddr, len: usize) -> SocketAddrAny { in read_sockaddr_os()
Dwrite_sockaddr.rs10 addr: &SocketAddrAny, in write_sockaddr()
Dsyscalls.rs164 pub(crate) fn acceptfrom(fd: BorrowedFd<'_>) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom()
204 ) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom_with()
468 ) -> io::Result<(usize, Option<SocketAddrAny>)> { in recvfrom()
512 pub(crate) fn getpeername(fd: BorrowedFd<'_>) -> io::Result<Option<SocketAddrAny>> { in getpeername()
549 pub(crate) fn getsockname(fd: BorrowedFd<'_>) -> io::Result<SocketAddrAny> { in getsockname()