Introduce QueryInformation to system::Action

This commit is contained in:
Richard 2022-02-16 19:37:38 -03:00
parent fed8da1c90
commit 69781499cb
4 changed files with 52 additions and 4 deletions

View file

@ -20,7 +20,7 @@ pub enum Action<T> {
Window(window::Action),
/// Run a system action.
System(system::Action),
System(system::Action<T>),
}
impl<T> Action<T> {
@ -38,7 +38,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),
Self::System(system) => Action::System(system.map(f)),
}
}
}