mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
docs: fix all rustdoc warnings (#1474)
This commit is contained in:
@@ -262,8 +262,10 @@ impl TryFrom<TcpListener> for mio::net::TcpListener {
|
||||
|
||||
/// Consumes value, returning the mio I/O object.
|
||||
///
|
||||
/// See [`tokio_net::util::PollEvented::into_inner`] for more details about
|
||||
/// See [`PollEvented::into_inner`] for more details about
|
||||
/// resource deregistration that happens during the call.
|
||||
///
|
||||
/// [`PollEvented::into_inner`]: crate::util::PollEvented::into_inner
|
||||
fn try_from(value: TcpListener) -> Result<Self, Self::Error> {
|
||||
value.io.into_inner()
|
||||
}
|
||||
|
||||
@@ -802,8 +802,10 @@ impl TryFrom<TcpStream> for mio::net::TcpStream {
|
||||
|
||||
/// Consumes value, returning the mio I/O object.
|
||||
///
|
||||
/// See [`tokio_net::util::PollEvented::into_inner`] for more details about
|
||||
/// See [`PollEvented::into_inner`] for more details about
|
||||
/// resource deregistration that happens during the call.
|
||||
///
|
||||
/// [`PollEvented::into_inner`]: crate::util::PollEvented::into_inner
|
||||
fn try_from(value: TcpStream) -> Result<Self, Self::Error> {
|
||||
value.io.into_inner()
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
//! library, which can be used to implement networking protocols.
|
||||
//!
|
||||
//! The main struct for UDP is the [`UdpSocket`], which represents a UDP socket.
|
||||
//! Reading and writing to it can be done using futures, which return the
|
||||
//! [`Recv`], [`Send`], [`RecvFrom`] and [`SendTo`] structs respectively.
|
||||
//!
|
||||
//! [`UdpSocket`]: struct.UdpSocket
|
||||
|
||||
mod frame;
|
||||
mod socket;
|
||||
|
||||
@@ -328,8 +328,10 @@ impl TryFrom<UdpSocket> for mio::net::UdpSocket {
|
||||
|
||||
/// Consumes value, returning the mio I/O object.
|
||||
///
|
||||
/// See [`tokio_net::util::PollEvented::into_inner`] for more details about
|
||||
/// See [`PollEvented::into_inner`] for more details about
|
||||
/// resource deregistration that happens during the call.
|
||||
///
|
||||
/// [`PollEvented::into_inner`]: crate::util::PollEvented::into_inner
|
||||
fn try_from(value: UdpSocket) -> Result<Self, Self::Error> {
|
||||
value.io.into_inner()
|
||||
}
|
||||
|
||||
@@ -201,8 +201,10 @@ impl TryFrom<UnixDatagram> for mio_uds::UnixDatagram {
|
||||
|
||||
/// Consumes value, returning the mio I/O object.
|
||||
///
|
||||
/// See [`tokio_net::util::PollEvented::into_inner`] for more details about
|
||||
/// See [`PollEvented::into_inner`] for more details about
|
||||
/// resource deregistration that happens during the call.
|
||||
///
|
||||
/// [`PollEvented::into_inner`]: crate::util::PollEvented::into_inner
|
||||
fn try_from(value: UnixDatagram) -> Result<Self, Self::Error> {
|
||||
value.io.into_inner()
|
||||
}
|
||||
|
||||
@@ -102,8 +102,10 @@ impl TryFrom<UnixListener> for mio_uds::UnixListener {
|
||||
|
||||
/// Consumes value, returning the mio I/O object.
|
||||
///
|
||||
/// See [`tokio_net::util::PollEvented::into_inner`] for more details about
|
||||
/// See [`PollEvented::into_inner`] for more details about
|
||||
/// resource deregistration that happens during the call.
|
||||
///
|
||||
/// [`PollEvented::into_inner`]: crate::util::PollEvented::into_inner
|
||||
fn try_from(value: UnixListener) -> Result<Self, Self::Error> {
|
||||
value.io.into_inner()
|
||||
}
|
||||
|
||||
@@ -131,8 +131,10 @@ impl TryFrom<UnixStream> for mio_uds::UnixStream {
|
||||
|
||||
/// Consumes value, returning the mio I/O object.
|
||||
///
|
||||
/// See [`tokio_net::util::PollEvented::into_inner`] for more details about
|
||||
/// See [`PollEvented::into_inner`] for more details about
|
||||
/// resource deregistration that happens during the call.
|
||||
///
|
||||
/// [`PollEvented::into_inner`]: crate::util::PollEvented::into_inner
|
||||
fn try_from(value: UnixStream) -> Result<Self, Self::Error> {
|
||||
value.io.into_inner()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user