pub trait AsyncCliDispatch {
// Required method
fn call<'a>(
self: Box<Self>,
ui: &'a mut Ui,
command_helper: &'a CommandHelper,
) -> Pin<Box<dyn Future<Output = Result<(), CommandError>> + 'a>>
where Self: 'a;
}Expand description
Object-safe trait for async command dispatch function.
Required Methods§
fn call<'a>(
self: Box<Self>,
ui: &'a mut Ui,
command_helper: &'a CommandHelper,
) -> Pin<Box<dyn Future<Output = Result<(), CommandError>> + 'a>>where
Self: 'a,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".