Struct dendrite_auth::dendrite::axon_server::query::query_service_client::QueryServiceClient
source · pub struct QueryServiceClient<T> { /* private fields */ }
Expand description
Service providing operations for the Query Messaging component of AxonServer
Implementations§
source§impl<T> QueryServiceClient<T>where
T: GrpcService<UnsyncBoxBody<Bytes, Status>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Sync + Send>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Sync + Send>> + Send,
impl<T> QueryServiceClient<T>where
T: GrpcService<UnsyncBoxBody<Bytes, Status>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::Error: Into<Box<dyn Error + Sync + Send>>,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Body<Data = Bytes> + Send + 'static,
<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Sync + Send>> + Send,
pub fn new(inner: T) -> QueryServiceClient<T>
pub fn with_origin(inner: T, origin: Uri) -> QueryServiceClient<T>
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> QueryServiceClient<InterceptedService<T, F>>where
F: Interceptor,
<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody: Default,
T: Service<Request<UnsyncBoxBody<Bytes, Status>>, Response = Response<<T as GrpcService<UnsyncBoxBody<Bytes, Status>>>::ResponseBody>>,
<T as Service<Request<UnsyncBoxBody<Bytes, Status>>>>::Error: Into<Box<dyn Error + Sync + Send>> + Send + Sync,
sourcepub fn send_compressed(
self,
encoding: CompressionEncoding
) -> QueryServiceClient<T>
pub fn send_compressed( self, encoding: CompressionEncoding ) -> QueryServiceClient<T>
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(
self,
encoding: CompressionEncoding
) -> QueryServiceClient<T>
pub fn accept_compressed( self, encoding: CompressionEncoding ) -> QueryServiceClient<T>
Enable decompressing responses.
sourcepub fn max_decoding_message_size(self, limit: usize) -> QueryServiceClient<T>
pub fn max_decoding_message_size(self, limit: usize) -> QueryServiceClient<T>
Limits the maximum size of a decoded message.
Default: 4MB
sourcepub fn max_encoding_message_size(self, limit: usize) -> QueryServiceClient<T>
pub fn max_encoding_message_size(self, limit: usize) -> QueryServiceClient<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
sourcepub async fn open_stream(
&mut self,
request: impl IntoStreamingRequest<Message = QueryProviderOutbound>
) -> Result<Response<Streaming<QueryProviderInbound>>, Status>
pub async fn open_stream( &mut self, request: impl IntoStreamingRequest<Message = QueryProviderOutbound> ) -> Result<Response<Streaming<QueryProviderInbound>>, Status>
Opens a Query- and Instruction stream to AxonServer.
sourcepub async fn query(
&mut self,
request: impl IntoRequest<QueryRequest>
) -> Result<Response<Streaming<QueryResponse>>, Status>
pub async fn query( &mut self, request: impl IntoRequest<QueryRequest> ) -> Result<Response<Streaming<QueryResponse>>, Status>
Sends a point-to-point or scatter-gather Query
sourcepub async fn subscription(
&mut self,
request: impl IntoStreamingRequest<Message = SubscriptionQueryRequest>
) -> Result<Response<Streaming<SubscriptionQueryResponse>>, Status>
pub async fn subscription( &mut self, request: impl IntoStreamingRequest<Message = SubscriptionQueryRequest> ) -> Result<Response<Streaming<SubscriptionQueryResponse>>, Status>
Opens a Subscription Query
Trait Implementations§
source§impl<T> Clone for QueryServiceClient<T>where
T: Clone,
impl<T> Clone for QueryServiceClient<T>where
T: Clone,
source§fn clone(&self) -> QueryServiceClient<T>
fn clone(&self) -> QueryServiceClient<T>
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 moreAuto Trait Implementations§
impl<T> RefUnwindSafe for QueryServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for QueryServiceClient<T>where
T: Send,
impl<T> Sync for QueryServiceClient<T>where
T: Sync,
impl<T> Unpin for QueryServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for QueryServiceClient<T>where
T: UnwindSafe,
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