mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
Add documentation links.
This commit is contained in:
parent
815dc803db
commit
d7f76ca549
@ -41,8 +41,10 @@ impl LoopHandle {
|
||||
}
|
||||
}
|
||||
|
||||
/// Return value from the `LoopHandle::add_timeout` method, a future that will
|
||||
/// Return value from the [`LoopHandle::add_timeout`] method, a future that will
|
||||
/// resolve to a `TimeoutToken` to configure the behavior of that timeout.
|
||||
///
|
||||
/// [`LoopHandle::add_timeout`]: struct.LoopHandle.html#method.add_timeout
|
||||
pub struct AddTimeout {
|
||||
inner: LoopFuture<(usize, Instant), Instant>,
|
||||
}
|
||||
|
@ -4,8 +4,10 @@ use futures::{Future, Poll};
|
||||
|
||||
/// A future which will copy all data from a reader into a writer.
|
||||
///
|
||||
/// Created by the `copy` function, this future will resolve to the number of
|
||||
/// Created by the [`copy`] function, this future will resolve to the number of
|
||||
/// bytes copied or an error if one happens.
|
||||
///
|
||||
/// [`copy`]: fn.copy.html
|
||||
pub struct Copy<R, W> {
|
||||
reader: R,
|
||||
read_done: bool,
|
||||
|
@ -6,7 +6,9 @@ use futures::{Poll, Future, Async};
|
||||
///
|
||||
/// Resolves to the underlying I/O object once the flush operation is complete.
|
||||
///
|
||||
/// Created by the `flush` function.
|
||||
/// Created by the [`flush`] function.
|
||||
///
|
||||
/// [`flush`]: fn.flush.html
|
||||
pub struct Flush<A> {
|
||||
a: Option<A>,
|
||||
}
|
||||
|
@ -6,7 +6,9 @@ use futures::{Poll, Future};
|
||||
/// A future which can be used to easily read exactly enough bytes to fill
|
||||
/// a buffer.
|
||||
///
|
||||
/// Created by the `read_exact` function.
|
||||
/// Created by the [`read_exact`] function.
|
||||
///
|
||||
/// [`read_exact`]: fn.read_exact.html
|
||||
pub struct ReadExact<A, T> {
|
||||
state: State<A, T>,
|
||||
}
|
||||
|
@ -6,7 +6,9 @@ use futures::{Poll, Future};
|
||||
/// A future which can be used to easily read the entire contents of a stream
|
||||
/// into a vector.
|
||||
///
|
||||
/// Created by the `read_to_end` function.
|
||||
/// Created by the [`read_to_end`] function.
|
||||
///
|
||||
/// [`read_to_end`]: fn.read_to_end.html
|
||||
pub struct ReadToEnd<A> {
|
||||
state: State<A>,
|
||||
}
|
||||
|
@ -5,7 +5,9 @@ use futures::{Poll, Future};
|
||||
|
||||
/// A future used to write the entire contents of some data to a stream.
|
||||
///
|
||||
/// This is created by the `write_all` top-level method.
|
||||
/// This is created by the [`write_all`] top-level method.
|
||||
///
|
||||
/// [`write_all`]: fn.write_all.html
|
||||
pub struct WriteAll<A, T> {
|
||||
state: State<A, T>,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user