Skip to main content

SettingActionHandler

Trait SettingActionHandler 

Source
pub trait SettingActionHandler<Action: Copy> {
    // Required methods
    fn can_apply(&self, action: Action) -> bool;
    fn apply(&mut self, action: Action);
}
Expand description

Traits for app-defined settings handlers and request messages.

Required Methods§

Source

fn can_apply(&self, action: Action) -> bool

Source

fn apply(&mut self, action: Action)

Implementors§