Skip to main content

AsyncCliDispatch

Trait AsyncCliDispatch 

Source
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§

Source

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,

Implementors§