diff options
author | 2023-11-29 00:14:27 +0100 | |
---|---|---|
committer | 2023-11-29 00:14:27 +0100 | |
commit | a761448858521d11dc646e2ef5217e9e06628932 (patch) | |
tree | 131f3c5364134f7eded5da5a1b68bcd0ef0af12a /src | |
parent | 3b7d479534d9114ed12bb5d9ccd910e85d5c13c7 (diff) | |
download | iced-a761448858521d11dc646e2ef5217e9e06628932.tar.gz iced-a761448858521d11dc646e2ef5217e9e06628932.tar.bz2 iced-a761448858521d11dc646e2ef5217e9e06628932.zip |
Implement `command::channel` helper
It is analogous to `subscription::channel`.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -190,7 +190,6 @@ pub use crate::core::{ color, Alignment, Background, BorderRadius, Color, ContentFit, Degrees, Gradient, Length, Padding, Pixels, Point, Radians, Rectangle, Size, Vector, }; -pub use crate::runtime::Command; pub mod clipboard { //! Access the clipboard. @@ -239,6 +238,11 @@ pub mod mouse { }; } +pub mod command { + //! Run asynchronous actions. + pub use crate::runtime::command::{channel, Command}; +} + pub mod subscription { //! Listen to external events in your application. pub use iced_futures::subscription::{ @@ -287,6 +291,7 @@ pub mod widget { } pub use application::Application; +pub use command::Command; pub use error::Error; pub use event::Event; pub use executor::Executor; |