summaryrefslogtreecommitdiffstats
path: root/native/src/command
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/command')
-rw-r--r--native/src/command/action.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/native/src/command/action.rs b/native/src/command/action.rs
index 342d0cfe..1bb03cef 100644
--- a/native/src/command/action.rs
+++ b/native/src/command/action.rs
@@ -11,6 +11,8 @@ use std::fmt;
/// [`Command`]: crate::Command
pub enum Action<T> {
/// Run a [`Future`] to completion.
+ ///
+ /// [`Future`]: iced_futures::BoxFuture
Future(iced_futures::BoxFuture<T>),
/// Run a clipboard action.
@@ -25,6 +27,8 @@ pub enum Action<T> {
impl<T> Action<T> {
/// Applies a transformation to the result of a [`Command`].
+ ///
+ /// [`Command`]: crate::Command
pub fn map<A>(
self,
f: impl Fn(T) -> A + 'static + MaybeSend + Sync,