pub trait AppCommandSink: Send + Sync {
// Required method
fn send_command<'life0, 'async_trait>(
&'life0 self,
command: AppCommand,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: '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<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn send_command<'life0, 'async_trait>(
&'life0 self,
command: AppCommand,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Send a command to the application core.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".