diff options
author | 2020-01-20 09:49:17 +0100 | |
---|---|---|
committer | 2020-01-20 09:49:17 +0100 | |
commit | f14009601e270e43bdf29b8f4842cf136fbbd8b9 (patch) | |
tree | fabfb4d9dced45d28b9fb65be629b40ecda3b402 /futures/src/executor | |
parent | 03da887339e3d0590dc84238431b61c211f7cf7e (diff) | |
download | iced-f14009601e270e43bdf29b8f4842cf136fbbd8b9.tar.gz iced-f14009601e270e43bdf29b8f4842cf136fbbd8b9.tar.bz2 iced-f14009601e270e43bdf29b8f4842cf136fbbd8b9.zip |
Write documentation for `iced_futures`
Diffstat (limited to 'futures/src/executor')
-rw-r--r-- | futures/src/executor/async_std.rs | 2 | ||||
-rw-r--r-- | futures/src/executor/null.rs | 2 | ||||
-rw-r--r-- | futures/src/executor/thread_pool.rs | 1 | ||||
-rw-r--r-- | futures/src/executor/tokio.rs | 1 |
4 files changed, 6 insertions, 0 deletions
diff --git a/futures/src/executor/async_std.rs b/futures/src/executor/async_std.rs index b056b23d..641dfbd2 100644 --- a/futures/src/executor/async_std.rs +++ b/futures/src/executor/async_std.rs @@ -2,6 +2,8 @@ use crate::Executor; use futures::Future; +/// A type representing the `async-std` runtime. +#[derive(Debug)] pub struct AsyncStd; impl Executor for AsyncStd { diff --git a/futures/src/executor/null.rs b/futures/src/executor/null.rs index 722073bb..6d5cf982 100644 --- a/futures/src/executor/null.rs +++ b/futures/src/executor/null.rs @@ -2,6 +2,8 @@ use crate::Executor; use futures::Future; +/// An executor that drops all the futures, instead of spawning them. +#[derive(Debug)] pub struct Null; impl Executor for Null { diff --git a/futures/src/executor/thread_pool.rs b/futures/src/executor/thread_pool.rs index 6393d0d5..09cb4d21 100644 --- a/futures/src/executor/thread_pool.rs +++ b/futures/src/executor/thread_pool.rs @@ -2,6 +2,7 @@ use crate::Executor; use futures::Future; +/// A thread pool for futures. pub type ThreadPool = futures::executor::ThreadPool; impl Executor for futures::executor::ThreadPool { diff --git a/futures/src/executor/tokio.rs b/futures/src/executor/tokio.rs index aafa7e7b..4c609686 100644 --- a/futures/src/executor/tokio.rs +++ b/futures/src/executor/tokio.rs @@ -2,6 +2,7 @@ use crate::Executor; use futures::Future; +/// The `tokio` runtime. pub type Tokio = tokio::runtime::Runtime; impl Executor for Tokio { |