blob: cd3ba0757840f8ab3ec4f48d7327ac811f6c14d1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//! Access the native system.
use crate::command::{self, Command};
use iced_native::system;
/// Query for available system information.
///
/// Returns `None` if not using the `sysinfo` feature flag.
pub fn information<Message>(
f: impl Fn(Option<system::Information>) -> Message + 'static,
) -> Command<Message> {
Command::single(command::Action::System(system::Action::QueryInformation(
Box::new(f),
)))
}
|