Trait relm4::actions::traits::ActionablePlus
source · pub trait ActionablePlus {
// Required methods
fn set_action<A: ActionName>(&self, value: A::Target)
where A::Target: ToVariant;
fn set_stateless_action<A: ActionName>(&self, unit_type: &())
where A::Target: EmptyType;
}
Expand description
Type safe interface for gtk::prelude::ActionableExt
.
Required Methods§
sourcefn set_action<A: ActionName>(&self, value: A::Target)where
A::Target: ToVariant,
fn set_action<A: ActionName>(&self, value: A::Target)where A::Target: ToVariant,
Set a new stateful action with a default state value.
sourcefn set_stateless_action<A: ActionName>(&self, unit_type: &())where
A::Target: EmptyType,
fn set_stateless_action<A: ActionName>(&self, unit_type: &())where A::Target: EmptyType,
Set a new stateless action.