Trait dendrite_auth::dendrite::axon_utils::CommandSink
source · pub trait CommandSink {
// Required method
fn send_command<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
command_type: &'life1 str,
command: &'life2 (dyn VecU8Message + Sync)
) -> Pin<Box<dyn Future<Output = Result<Option<SerializedObject>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
}
Expand description
Trait that is implemented by an object that can be used to send commands to AxonServer.
Required Methods§
sourcefn send_command<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
command_type: &'life1 str,
command: &'life2 (dyn VecU8Message + Sync)
) -> Pin<Box<dyn Future<Output = Result<Option<SerializedObject>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn send_command<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
command_type: &'life1 str,
command: &'life2 (dyn VecU8Message + Sync)
) -> Pin<Box<dyn Future<Output = Result<Option<SerializedObject>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
👎Deprecated since 0.8.0: Use struct
SubmitCommand
instead