Struct dendrite_auth::dendrite::axon_utils::AxonServerHandle
source · 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§
source§impl AxonServerHandle
impl AxonServerHandle
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
'life0: 'async_trait,
AxonServerHandle: 'async_trait,
fn join_workers<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
AxonServerHandle: 'async_trait,
fn join_workers_with_signal<'life0, 'life1, 'async_trait>(
&'life0 self,
terminate: &'life1 mut Option<Signal>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
AxonServerHandle: 'async_trait,
source§impl Clone for AxonServerHandle
impl Clone for AxonServerHandle
source§fn clone(&self) -> AxonServerHandle
fn clone(&self) -> AxonServerHandle
Returns a copy 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>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
AxonServerHandle: '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,
AxonServerHandle: '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>, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
AxonServerHandle: 'async_trait,
Auto Trait Implementations§
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
§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