pub fn acceptfrom<Fd: AsFd>(
sockfd: Fd,
) -> Result<(OwnedFd, Option<SocketAddrAny>)>Available on crate feature
net only.Expand description
accept(fd, &addr, &len)—Accepts an incoming connection and returns the
peer address.
Use accept if the peer address isn’t needed.
See acceptfrom_with to pass additional flags.