Skip to main content

AppCommandSink

Trait AppCommandSink 

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

Source

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".

Implementations on Foreign Types§

Source§

impl AppCommandSink for GrpcClientAdapter

Source§

fn send_command<'life0, 'async_trait>( &'life0 self, command: AppCommand, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, GrpcClientAdapter: 'async_trait,

Implementors§