Add links in docs to channel function.

This commit is contained in:
Corey Farwell
2016-09-08 10:33:41 -04:00
parent 1f0d2198ad
commit eb643c4d9e
+7 -3
View File
@@ -17,7 +17,9 @@ use reactor::{Handle, PollEvented};
/// A `Sender` can be `clone`d to have multiple threads or instances sending
/// messages to one receiver.
///
/// This type is created by the `channel` function.
/// This type is created by the [`channel`] function.
///
/// [`channel`]: fn.channel.html
pub struct Sender<T> {
tx: channel::Sender<T>,
}
@@ -28,8 +30,10 @@ pub struct Sender<T> {
/// A `Receiver` cannot be cloned, so only one thread can receive messages at a
/// time.
///
/// This type is created by the `channel` function and implements the `Stream`
/// trait to represent received messages.
/// This type is created by the [`channel`] function and implements the
/// `Stream` trait to represent received messages.
///
/// [`channel`]: fn.channel.html
pub struct Receiver<T> {
rx: PollEvented<channel::Receiver<T>>,
}