pub trait AppCommandSink: Send + Sync {
// Required method
fn send_command<'life0, 'async_trait>(
&'life0 self,
command: AppCommand,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Abstraction over a channel or transport that accepts AppCommands sent
from the UI or other front-ends.
Required Methods§
Sourcefn send_command<'life0, 'async_trait>(
&'life0 self,
command: AppCommand,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_command<'life0, 'async_trait>(
&'life0 self,
command: AppCommand,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Send a command to the application core.