pub struct AxonServerHandle {
pub display_name: String,
pub client_id: String,
pub conn: Channel,
pub notify: Sender<Uuid>,
/* private fields */
}
Expand description
A handle for AxonServer.
Fields§
§display_name: String
§client_id: String
§conn: Channel
§notify: Sender<Uuid>
Implementations§
Trait Implementations§
Source§impl AxonServerHandleAsyncTrait for AxonServerHandle
impl AxonServerHandleAsyncTrait for AxonServerHandle
fn dispatch<'life0, 'async_trait>(
&'life0 self,
request: Command,
) -> Pin<Box<dyn Future<Output = Result<Response<CommandResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn join_workers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn join_workers_with_signal<'life0, 'life1, 'async_trait>(
&'life0 self,
terminate: &'life1 mut Option<Signal>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl Clone for AxonServerHandle
impl Clone for AxonServerHandle
Source§fn clone(&self) -> AxonServerHandle
fn clone(&self) -> AxonServerHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CommandSink for AxonServerHandle
impl CommandSink for AxonServerHandle
Source§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>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: '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>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
👎Deprecated since 0.8.0: Use struct
SubmitCommand
insteadSource§impl Debug for AxonServerHandle
impl Debug for AxonServerHandle
Source§impl QuerySink for AxonServerHandle
impl QuerySink for AxonServerHandle
fn send_query<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query_type: &'life1 str,
query: &'life2 (dyn VecU8Message + Sync),
) -> Pin<Box<dyn Future<Output = Result<Vec<SerializedObject>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for AxonServerHandle
impl !RefUnwindSafe for AxonServerHandle
impl Send for AxonServerHandle
impl Sync for AxonServerHandle
impl Unpin for AxonServerHandle
impl !UnwindSafe for AxonServerHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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