pub struct ViewClient<T> { /* private fields */ }Expand description
Implementations§
Source§impl<T> ViewClient<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> ViewClient<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,
) -> ViewClient<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 add_contract(
&mut self,
request: impl IntoRequest<AddContractReq>,
) -> Result<Response<NoReply>, Status>
pub async fn add_contract( &mut self, request: impl IntoRequest<AddContractReq>, ) -> Result<Response<NoReply>, Status>
Sourcepub async fn cache_view(
&mut self,
request: impl IntoRequest<CacheViewReq>,
) -> Result<Response<CacheViewReply>, Status>
pub async fn cache_view( &mut self, request: impl IntoRequest<CacheViewReq>, ) -> Result<Response<CacheViewReply>, Status>
Sourcepub async fn chronos_pkg(
&mut self,
request: impl IntoRequest<ChronosPkgReq>,
) -> Result<Response<Chronos>, Status>
pub async fn chronos_pkg( &mut self, request: impl IntoRequest<ChronosPkgReq>, ) -> Result<Response<Chronos>, Status>
Sourcepub async fn click_activity_season(
&mut self,
request: impl IntoRequest<ClickActivitySeasonReq>,
) -> Result<Response<NoReply>, Status>
pub async fn click_activity_season( &mut self, request: impl IntoRequest<ClickActivitySeasonReq>, ) -> Result<Response<NoReply>, Status>
Sourcepub async fn click_player_card(
&mut self,
request: impl IntoRequest<ClickPlayerCardReq>,
) -> Result<Response<NoReply>, Status>
pub async fn click_player_card( &mut self, request: impl IntoRequest<ClickPlayerCardReq>, ) -> Result<Response<NoReply>, Status>
Sourcepub async fn click_player_card_v2(
&mut self,
request: impl IntoRequest<ClickPlayerCardReq>,
) -> Result<Response<ClickPlayerCardReply>, Status>
pub async fn click_player_card_v2( &mut self, request: impl IntoRequest<ClickPlayerCardReq>, ) -> Result<Response<ClickPlayerCardReply>, Status>
Sourcepub async fn continuous_play(
&mut self,
request: impl IntoRequest<ContinuousPlayReq>,
) -> Result<Response<ContinuousPlayReply>, Status>
pub async fn continuous_play( &mut self, request: impl IntoRequest<ContinuousPlayReq>, ) -> Result<Response<ContinuousPlayReply>, Status>
Sourcepub async fn expose_player_card(
&mut self,
request: impl IntoRequest<ExposePlayerCardReq>,
) -> Result<Response<NoReply>, Status>
pub async fn expose_player_card( &mut self, request: impl IntoRequest<ExposePlayerCardReq>, ) -> Result<Response<NoReply>, Status>
Sourcepub async fn feed_view(
&mut self,
request: impl IntoRequest<FeedViewReq>,
) -> Result<Response<FeedViewReply>, Status>
pub async fn feed_view( &mut self, request: impl IntoRequest<FeedViewReq>, ) -> Result<Response<FeedViewReply>, Status>
Sourcepub async fn get_arcs_player(
&mut self,
request: impl IntoRequest<GetArcsPlayerReq>,
) -> Result<Response<GetArcsPlayerReply>, Status>
pub async fn get_arcs_player( &mut self, request: impl IntoRequest<GetArcsPlayerReq>, ) -> Result<Response<GetArcsPlayerReply>, Status>
Sourcepub async fn get_user(
&mut self,
request: impl IntoRequest<GetUserReq>,
) -> Result<Response<GetUserReply>, Status>
pub async fn get_user( &mut self, request: impl IntoRequest<GetUserReq>, ) -> Result<Response<GetUserReply>, Status>
Sourcepub async fn player_relates(
&mut self,
request: impl IntoRequest<PlayerRelatesReq>,
) -> Result<Response<PlayerRelatesReply>, Status>
pub async fn player_relates( &mut self, request: impl IntoRequest<PlayerRelatesReq>, ) -> Result<Response<PlayerRelatesReply>, Status>
Sourcepub async fn premiere_archive(
&mut self,
request: impl IntoRequest<PremiereArchiveReq>,
) -> Result<Response<PremiereArchiveReply>, Status>
pub async fn premiere_archive( &mut self, request: impl IntoRequest<PremiereArchiveReq>, ) -> Result<Response<PremiereArchiveReply>, Status>
Sourcepub async fn relates_feed(
&mut self,
request: impl IntoRequest<RelatesFeedReq>,
) -> Result<Response<RelatesFeedReply>, Status>
pub async fn relates_feed( &mut self, request: impl IntoRequest<RelatesFeedReq>, ) -> Result<Response<RelatesFeedReply>, Status>
Sourcepub async fn reserve(
&mut self,
request: impl IntoRequest<ReserveReq>,
) -> Result<Response<ReserveReply>, Status>
pub async fn reserve( &mut self, request: impl IntoRequest<ReserveReq>, ) -> Result<Response<ReserveReply>, Status>
Sourcepub async fn season(
&mut self,
request: impl IntoRequest<SeasonReq>,
) -> Result<Response<SeasonReply>, Status>
pub async fn season( &mut self, request: impl IntoRequest<SeasonReq>, ) -> Result<Response<SeasonReply>, Status>
Sourcepub async fn season_activity_record(
&mut self,
request: impl IntoRequest<SeasonActivityRecordReq>,
) -> Result<Response<SeasonActivityRecordReply>, Status>
pub async fn season_activity_record( &mut self, request: impl IntoRequest<SeasonActivityRecordReq>, ) -> Result<Response<SeasonActivityRecordReply>, Status>
Sourcepub async fn season_widget_expose(
&mut self,
request: impl IntoRequest<SeasonWidgetExposeReq>,
) -> Result<Response<SeasonWidgetExposeReply>, Status>
pub async fn season_widget_expose( &mut self, request: impl IntoRequest<SeasonWidgetExposeReq>, ) -> Result<Response<SeasonWidgetExposeReply>, Status>
Sourcepub async fn short_form_video_download(
&mut self,
request: impl IntoRequest<ShortFormVideoDownloadReq>,
) -> Result<Response<ShortFormVideoDownloadReply>, Status>
pub async fn short_form_video_download( &mut self, request: impl IntoRequest<ShortFormVideoDownloadReq>, ) -> Result<Response<ShortFormVideoDownloadReply>, Status>
Sourcepub async fn tf_info(
&mut self,
request: impl IntoRequest<TfInfoReq>,
) -> Result<Response<TfInfoReply>, Status>
pub async fn tf_info( &mut self, request: impl IntoRequest<TfInfoReq>, ) -> Result<Response<TfInfoReply>, Status>
Sourcepub async fn view(
&mut self,
request: impl IntoRequest<ViewReq>,
) -> Result<Response<ViewReply>, Status>
pub async fn view( &mut self, request: impl IntoRequest<ViewReq>, ) -> Result<Response<ViewReply>, Status>
Sourcepub async fn view_material(
&mut self,
request: impl IntoRequest<ViewMaterialReq>,
) -> Result<Response<ViewMaterialReply>, Status>
pub async fn view_material( &mut self, request: impl IntoRequest<ViewMaterialReq>, ) -> Result<Response<ViewMaterialReply>, Status>
Sourcepub async fn view_progress(
&mut self,
request: impl IntoRequest<ViewProgressReq>,
) -> Result<Response<ViewProgressReply>, Status>
pub async fn view_progress( &mut self, request: impl IntoRequest<ViewProgressReq>, ) -> Result<Response<ViewProgressReply>, Status>
Sourcepub async fn view_tag(
&mut self,
request: impl IntoRequest<ViewTagReq>,
) -> Result<Response<ViewTagReply>, Status>
pub async fn view_tag( &mut self, request: impl IntoRequest<ViewTagReq>, ) -> Result<Response<ViewTagReply>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for ViewClient<T>
impl<T: Clone> Clone for ViewClient<T>
Source§fn clone(&self) -> ViewClient<T>
fn clone(&self) -> ViewClient<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 ViewClient<T>
impl<T> RefUnwindSafe for ViewClient<T>where
T: RefUnwindSafe,
impl<T> Send for ViewClient<T>where
T: Send,
impl<T> Sync for ViewClient<T>where
T: Sync,
impl<T> Unpin for ViewClient<T>where
T: Unpin,
impl<T> UnwindSafe for ViewClient<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