[][src]Trait dendrite::axon_utils::CommandSink

pub trait CommandSink {
#[must_use]    pub fn send_command<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        command_type: &'life1 str,
        command: Box<&'life2 (dyn VecU8Message + Sync)>
    ) -> Pin<Box<dyn Future<Output = Result<Option<SerializedObject>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Trait that is implemented by an object that can be used to send commands to AxonServer.

Required methods

#[must_use]pub fn send_command<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    command_type: &'life1 str,
    command: Box<&'life2 (dyn VecU8Message + Sync)>
) -> Pin<Box<dyn Future<Output = Result<Option<SerializedObject>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl CommandSink for AxonServerHandle[src]

Loading content...