mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
docs: fix warnings for nightly docs (#792)
This commit is contained in:
parent
af85cb3430
commit
db69275202
@ -9,10 +9,10 @@
|
||||
//! # Getting started
|
||||
//!
|
||||
//! If implementing a protocol from scratch, using length delimited framing
|
||||
//! is an easy way to get started. [`Codec::new()`] will return a length
|
||||
//! delimited codec using default configuration values. This can then be
|
||||
//! used to construct a framer to adapt a full-duplex byte stream into a
|
||||
//! stream of frames.
|
||||
//! is an easy way to get started. [`LengthDelimitedCodec::new()`] will
|
||||
//! return a length delimited codec using default configuration values.
|
||||
//! This can then be used to construct a framer to adapt a full-duplex
|
||||
//! byte stream into a stream of frames.
|
||||
//!
|
||||
//! ```
|
||||
//! # extern crate tokio;
|
||||
@ -345,6 +345,7 @@
|
||||
//! +------------+--------------+
|
||||
//! ```
|
||||
//!
|
||||
//! [`LengthDelimitedCodec::new()`]: struct.LengthDelimitedCodec.html#method.new
|
||||
//! [`FramedRead`]: struct.FramedRead.html
|
||||
//! [`FramedWrite`]: struct.FramedWrite.html
|
||||
//! [`AsyncRead`]: ../../trait.AsyncRead.html
|
||||
|
@ -46,7 +46,7 @@ pub mod length_delimited {
|
||||
//! # Getting started
|
||||
//!
|
||||
//! If implementing a protocol from scratch, using length delimited framing
|
||||
//! is an easy way to get started. [`Framed::new()`] will adapt a
|
||||
//! is an easy way to get started. [`Framed::new()`](length_delimited::Framed::new) will adapt a
|
||||
//! full-duplex byte stream with a length delimited framer using default
|
||||
//! configuration values.
|
||||
//!
|
||||
|
@ -63,10 +63,11 @@ use std::time::{Instant, Duration};
|
||||
/// Cancelling a `Timeout` is done by dropping the value. No additional cleanup
|
||||
/// or other work is required.
|
||||
///
|
||||
/// The original future or stream may be obtained by calling [`into_inner`]. This
|
||||
/// The original future or stream may be obtained by calling [`Timeout::into_inner`]. This
|
||||
/// consumes the `Timeout`.
|
||||
///
|
||||
/// [`Error`]: struct.Error.html
|
||||
/// [`Timeout::into_inner`]: struct.Timeout.html#method.into_iter
|
||||
#[must_use = "futures do nothing unless polled"]
|
||||
#[derive(Debug)]
|
||||
pub struct Timeout<T> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user