Struct dendrite_auth::dendrite::axon_utils::SubmitCommand
source · pub struct SubmitCommand { /* private fields */ }
Implementations§
source§impl SubmitCommand
impl SubmitCommand
pub fn new( command_type: &str, command: Box<dyn VecU8Message + Sync + Send> ) -> SubmitCommand
pub fn command<'a>( &'a mut self, command_type: &str, command: Box<dyn VecU8Message + Sync + Send> ) -> &'a mut SubmitCommand
pub fn annotation<'a>( &'a mut self, key: &str, value: &MetaDataValue ) -> &'a mut SubmitCommand
pub fn text_annotation<'a>( &'a mut self, key: &str, value: &str ) -> &'a mut SubmitCommand
pub fn correlation_id(&mut self, correlation_id: &str) -> &mut SubmitCommand
pub async fn send( &self, axon_server_handle: &AxonServerHandle ) -> Result<Option<SerializedObject>, Error>
Trait Implementations§
source§impl Default for SubmitCommand
impl Default for SubmitCommand
source§fn default() -> SubmitCommand
fn default() -> SubmitCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SubmitCommand
impl Send for SubmitCommand
impl Sync for SubmitCommand
impl Unpin for SubmitCommand
impl !UnwindSafe for SubmitCommand
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request