mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-21 00:00:10 +02:00
net: add uds doc alias for unix sockets (#5659)
This commit is contained in:
@@ -91,6 +91,7 @@ cfg_net_unix! {
|
||||
/// # Ok(())
|
||||
/// # }
|
||||
/// ```
|
||||
#[cfg_attr(docsrs, doc(alias = "uds"))]
|
||||
pub struct UnixDatagram {
|
||||
io: PollEvented<mio::net::UnixDatagram>,
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ cfg_net_unix! {
|
||||
/// }
|
||||
/// }
|
||||
/// ```
|
||||
#[cfg_attr(docsrs, doc(alias = "uds"))]
|
||||
pub struct UnixListener {
|
||||
io: PollEvented<mio::net::UnixListener>,
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ cfg_net_unix! {
|
||||
///
|
||||
/// [`shutdown()`]: fn@crate::io::AsyncWriteExt::shutdown
|
||||
/// [`UnixListener::accept`]: crate::net::UnixListener::accept
|
||||
#[cfg_attr(docsrs, doc(alias = "uds"))]
|
||||
pub struct UnixStream {
|
||||
io: PollEvented<mio::net::UnixStream>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user