Rename system::information to fetch_information

This commit is contained in:
Richard 2022-04-26 19:35:43 -03:00
parent 18ecec2bbd
commit 8643fbef90
2 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ impl Application for Example {
fn new(_flags: ()) -> (Self, Command<Message>) {
(
Self::Loading,
system::information(Message::InformationReceived),
system::fetch_information(Message::InformationReceived),
)
}
@ -43,7 +43,7 @@ impl Application for Example {
fn update(&mut self, message: Message) -> Command<Message> {
match message {
Message::Refresh => {
return system::information(Message::InformationReceived);
return system::fetch_information(Message::InformationReceived);
}
Message::InformationReceived(information) => {
if let Some(information) = information {

View file

@ -7,7 +7,7 @@ use iced_graphics::compositor;
/// Query for available system information.
///
/// Returns `None` if not using the `sysinfo` feature flag.
pub fn information<Message>(
pub fn fetch_information<Message>(
f: impl Fn(Option<Information>) -> Message + 'static,
) -> Command<Message> {
Command::single(command::Action::System(Action::QueryInformation(