pub struct CustomerInterfaceClient<T> { /* private fields */ }Expand description
Implementations§
Source§impl<T> CustomerInterfaceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> CustomerInterfaceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> CustomerInterfaceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
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) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn customer_pre_evaluate(
&mut self,
request: impl IntoRequest<PreEvaluateReq>,
) -> Result<Response<PreEvaluateRsp>, Status>
pub async fn customer_pre_evaluate( &mut self, request: impl IntoRequest<PreEvaluateReq>, ) -> Result<Response<PreEvaluateRsp>, Status>
Sourcepub async fn customer_update_ack(
&mut self,
request: impl IntoRequest<UpdateAckReq>,
) -> Result<Response<Empty>, Status>
pub async fn customer_update_ack( &mut self, request: impl IntoRequest<UpdateAckReq>, ) -> Result<Response<Empty>, Status>
Sourcepub async fn customer_window_options(
&mut self,
request: impl IntoRequest<WindowOptionsReq>,
) -> Result<Response<WindowOptionsRsp>, Status>
pub async fn customer_window_options( &mut self, request: impl IntoRequest<WindowOptionsReq>, ) -> Result<Response<WindowOptionsRsp>, Status>
Sourcepub async fn finish_paragraphs_render(
&mut self,
request: impl IntoRequest<FinishParagraphsRenderReq>,
) -> Result<Response<FinishParagraphsRenderRsp>, Status>
pub async fn finish_paragraphs_render( &mut self, request: impl IntoRequest<FinishParagraphsRenderReq>, ) -> Result<Response<FinishParagraphsRenderRsp>, Status>
Sourcepub async fn get_customer_sess_detail(
&mut self,
request: impl IntoRequest<GetSessDetailReq>,
) -> Result<Response<GetSessDetailRsp>, Status>
pub async fn get_customer_sess_detail( &mut self, request: impl IntoRequest<GetSessDetailReq>, ) -> Result<Response<GetSessDetailRsp>, Status>
Sourcepub async fn get_customer_sessions(
&mut self,
request: impl IntoRequest<GetSessionsReq>,
) -> Result<Response<SessionsRsp>, Status>
pub async fn get_customer_sessions( &mut self, request: impl IntoRequest<GetSessionsReq>, ) -> Result<Response<SessionsRsp>, Status>
Sourcepub async fn get_new_customer_sessions(
&mut self,
request: impl IntoRequest<GetNewSessionsReq>,
) -> Result<Response<SessionsRsp>, Status>
pub async fn get_new_customer_sessions( &mut self, request: impl IntoRequest<GetNewSessionsReq>, ) -> Result<Response<SessionsRsp>, Status>
Sourcepub async fn get_shop_cfg(
&mut self,
request: impl IntoRequest<ShopCfgReq>,
) -> Result<Response<ShopCfgRsp>, Status>
pub async fn get_shop_cfg( &mut self, request: impl IntoRequest<ShopCfgReq>, ) -> Result<Response<ShopCfgRsp>, Status>
Sourcepub async fn get_shop_info(
&mut self,
request: impl IntoRequest<ShopInfoReq>,
) -> Result<Response<ShopInfoRsp>, Status>
pub async fn get_shop_info( &mut self, request: impl IntoRequest<ShopInfoReq>, ) -> Result<Response<ShopInfoRsp>, Status>
Sourcepub async fn get_user_settings(
&mut self,
request: impl IntoRequest<GetUserSettingsReq>,
) -> Result<Response<GetUserSettingsRsp>, Status>
pub async fn get_user_settings( &mut self, request: impl IntoRequest<GetUserSettingsReq>, ) -> Result<Response<GetUserSettingsRsp>, Status>
Sourcepub async fn heart_beat(
&mut self,
request: impl IntoRequest<SendHeartBeatReq>,
) -> Result<Response<Empty>, Status>
pub async fn heart_beat( &mut self, request: impl IntoRequest<SendHeartBeatReq>, ) -> Result<Response<Empty>, Status>
Sourcepub async fn out_customer_queue(
&mut self,
request: impl IntoRequest<OutCustomerQueueReq>,
) -> Result<Response<Empty>, Status>
pub async fn out_customer_queue( &mut self, request: impl IntoRequest<OutCustomerQueueReq>, ) -> Result<Response<Empty>, Status>
Sourcepub async fn pop_result_update(
&mut self,
request: impl IntoRequest<PopResultUpdateReq>,
) -> Result<Response<PopResultUpdateRsp>, Status>
pub async fn pop_result_update( &mut self, request: impl IntoRequest<PopResultUpdateReq>, ) -> Result<Response<PopResultUpdateRsp>, Status>
Sourcepub async fn remove_session(
&mut self,
request: impl IntoRequest<RemoveSessionReq>,
) -> Result<Response<Empty>, Status>
pub async fn remove_session( &mut self, request: impl IntoRequest<RemoveSessionReq>, ) -> Result<Response<Empty>, Status>
Sourcepub async fn send_customer_msg(
&mut self,
request: impl IntoRequest<SendMsgReq>,
) -> Result<Response<SendMsgRsp>, Status>
pub async fn send_customer_msg( &mut self, request: impl IntoRequest<SendMsgReq>, ) -> Result<Response<SendMsgRsp>, Status>
Sourcepub async fn set_top(
&mut self,
request: impl IntoRequest<SetTopReq>,
) -> Result<Response<Empty>, Status>
pub async fn set_top( &mut self, request: impl IntoRequest<SetTopReq>, ) -> Result<Response<Empty>, Status>
Sourcepub async fn set_user_settings(
&mut self,
request: impl IntoRequest<SetUserSettingsReq>,
) -> Result<Response<SetUserSettingsRsp>, Status>
pub async fn set_user_settings( &mut self, request: impl IntoRequest<SetUserSettingsReq>, ) -> Result<Response<SetUserSettingsRsp>, Status>
Sourcepub async fn sync_fetch_customer_session_msgs(
&mut self,
request: impl IntoRequest<SessionMsgReq>,
) -> Result<Response<SessionMsgRsp>, Status>
pub async fn sync_fetch_customer_session_msgs( &mut self, request: impl IntoRequest<SessionMsgReq>, ) -> Result<Response<SessionMsgRsp>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for CustomerInterfaceClient<T>
impl<T: Clone> Clone for CustomerInterfaceClient<T>
Source§fn clone(&self) -> CustomerInterfaceClient<T>
fn clone(&self) -> CustomerInterfaceClient<T>
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 moreAuto Trait Implementations§
impl<T> !Freeze for CustomerInterfaceClient<T>
impl<T> RefUnwindSafe for CustomerInterfaceClient<T>where
T: RefUnwindSafe,
impl<T> Send for CustomerInterfaceClient<T>where
T: Send,
impl<T> Sync for CustomerInterfaceClient<T>where
T: Sync,
impl<T> Unpin for CustomerInterfaceClient<T>where
T: Unpin,
impl<T> UnwindSafe for CustomerInterfaceClient<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
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