diff options
author | 2022-05-11 18:08:36 +0200 | |
---|---|---|
committer | 2022-05-11 18:08:36 +0200 | |
commit | 2e7757a42819fba3757c5b88e77e184b09649910 (patch) | |
tree | 80b0a55ff3834647a6527d8856632e79d8352789 /native/src/command/action.rs | |
parent | d4ed8afa1ed15486144dc7afee52c09e044a92e0 (diff) | |
parent | b440df9afbb2b63717e84d209a0995ada0e72e6d (diff) | |
download | iced-2e7757a42819fba3757c5b88e77e184b09649910.tar.gz iced-2e7757a42819fba3757c5b88e77e184b09649910.tar.bz2 iced-2e7757a42819fba3757c5b88e77e184b09649910.zip |
Merge pull request #1314 from derezzedex/dev/system-information
feat: fetch system information
Diffstat (limited to '')
-rw-r--r-- | native/src/command/action.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/native/src/command/action.rs b/native/src/command/action.rs index cd4309ed..1bb03cef 100644 --- a/native/src/command/action.rs +++ b/native/src/command/action.rs @@ -1,4 +1,5 @@ use crate::clipboard; +use crate::system; use crate::window; use iced_futures::MaybeSend; @@ -19,6 +20,9 @@ pub enum Action<T> { /// Run a window action. Window(window::Action), + + /// Run a system action. + System(system::Action<T>), } impl<T> Action<T> { @@ -38,6 +42,7 @@ impl<T> Action<T> { Self::Future(future) => Action::Future(Box::pin(future.map(f))), Self::Clipboard(action) => Action::Clipboard(action.map(f)), Self::Window(window) => Action::Window(window), + Self::System(system) => Action::System(system.map(f)), } } } @@ -50,6 +55,7 @@ impl<T> fmt::Debug for Action<T> { write!(f, "Action::Clipboard({:?})", action) } Self::Window(action) => write!(f, "Action::Window({:?})", action), + Self::System(action) => write!(f, "Action::System({:?})", action), } } } |