File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -456,7 +456,8 @@ pub fn connect_unix<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrUnix) -> io::Result<(
456456/// `connect(sockfd, {.sa_family = AF_UNSPEC}, sizeof(struct sockaddr))`
457457/// — Dissolve the socket's association.
458458///
459- /// On UDP sockets, BSD platforms report AFNOSUPPORT or INVAL even if the disconnect was successful.
459+ /// On UDP sockets, BSD platforms report [`Errno::AFNOSUPPORT`] or
460+ /// [`Errno::INVAL`] even if the disconnect was successful.
460461///
461462/// # References
462463/// - [Beej's Guide to Network Programming]
@@ -482,6 +483,8 @@ pub fn connect_unix<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrUnix) -> io::Result<(
482483/// [DragonFly BSD]: https://man.dragonflybsd.org/?command=connect§ion=2
483484/// [illumos]: https://illumos.org/man/3SOCKET/connect
484485/// [glibc]: https://www.gnu.org/software/libc/manual/html_node/Connecting.html
486+ /// [`Errno::AFNOSUPPORT`]: io::Errno::AFNOSUPPORT
487+ /// [`Errno::INVAL`]: io::Errno::INVAL
485488#[ inline]
486489#[ doc( alias = "connect" ) ]
487490pub fn connect_unspec < Fd : AsFd > ( sockfd : Fd ) -> io:: Result < ( ) > {
You can’t perform that action at this time.
0 commit comments