Trait libpanel::subclass::workbench::WorkbenchClassSubclassExt
source · pub unsafe trait WorkbenchClassSubclassExt: ClassStruct {
// Provided methods
fn install_action_async<Fut, F>(
&mut self,
action_name: &str,
parameter_type: Option<&str>,
activate: F,
)
where F: Fn(<<Self as ClassStruct>::Type as ObjectSubclass>::Type, String, Option<Variant>) -> Fut + 'static + Clone,
Fut: Future<Output = ()> { ... }
fn install_action<F>(
&mut self,
action_name: &str,
parameter_type: Option<&str>,
activate: F,
)
where F: Fn(&<<Self as ClassStruct>::Type as ObjectSubclass>::Type, &str, Option<&Variant>) + 'static { ... }
fn install_property_action(
&mut self,
action_name: &str,
property_name: &str,
) { ... }
}
Provided Methods§
fn install_action_async<Fut, F>( &mut self, action_name: &str, parameter_type: Option<&str>, activate: F, )
fn install_action<F>(
&mut self,
action_name: &str,
parameter_type: Option<&str>,
activate: F,
)where
F: Fn(&<<Self as ClassStruct>::Type as ObjectSubclass>::Type, &str, Option<&Variant>) + 'static,
fn install_property_action(&mut self, action_name: &str, property_name: &str)
Object Safety§
This trait is not object safe.