Fix majority of unresolved documentation links
This commit is contained in:
parent
89d9c45d25
commit
89d9f1d7d2
40 changed files with 117 additions and 137 deletions
|
|
@ -19,16 +19,14 @@ pub type EventStream = BoxStream<(Event, event::Status)>;
|
|||
|
||||
/// A request to listen to external events.
|
||||
///
|
||||
/// Besides performing async actions on demand with [`Command`], most
|
||||
/// Besides performing async actions on demand with `Command`, most
|
||||
/// applications also need to listen to external events passively.
|
||||
///
|
||||
/// A [`Subscription`] is normally provided to some runtime, like a [`Command`],
|
||||
/// A [`Subscription`] is normally provided to some runtime, like a `Command`,
|
||||
/// and it will generate events as long as the user keeps requesting it.
|
||||
///
|
||||
/// For instance, you can use a [`Subscription`] to listen to a WebSocket
|
||||
/// connection, keyboard presses, mouse events, time ticks, etc.
|
||||
///
|
||||
/// [`Command`]: crate::Command
|
||||
#[must_use = "`Subscription` must be returned to runtime to take effect"]
|
||||
pub struct Subscription<Message> {
|
||||
recipes: Vec<Box<dyn Recipe<Output = Message>>>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue