DynamicClient

Struct DynamicClient 

Source
pub struct DynamicClient<T> { /* private fields */ }
Expand description

Implementations§

Source§

impl<T> DynamicClient<T>
where T: GrpcService<BoxBody>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,

Source

pub fn new(inner: T) -> Self

Source

pub fn with_origin(inner: T, origin: Uri) -> Self

Source

pub fn with_interceptor<F>( inner: T, interceptor: F, ) -> DynamicClient<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,

Source

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.

Source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

Source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

Source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

Source

pub async fn alumni_dynamics( &mut self, request: impl IntoRequest<AlumniDynamicsReq>, ) -> Result<Response<AlumniDynamicsReply>, Status>

Source

pub async fn campus_billboard( &mut self, request: impl IntoRequest<CampusBillBoardReq>, ) -> Result<Response<CampusBillBoardReply>, Status>

Source

pub async fn campus_billboard_internal( &mut self, request: impl IntoRequest<CampusBillboardInternalReq>, ) -> Result<Response<CampusBillBoardReply>, Status>

Source

pub async fn campus_entry_tab( &mut self, request: impl IntoRequest<CampusEntryTabReq>, ) -> Result<Response<CampusEntryTabResp>, Status>

Source

pub async fn campus_feedback( &mut self, request: impl IntoRequest<CampusFeedbackReq>, ) -> Result<Response<CampusFeedbackReply>, Status>

Source

pub async fn campus_home_pages( &mut self, request: impl IntoRequest<CampusHomePagesReq>, ) -> Result<Response<CampusHomePagesReply>, Status>

Source

pub async fn campus_mate_like_list( &mut self, request: impl IntoRequest<CampusMateLikeListReq>, ) -> Result<Response<CampusMateLikeListReply>, Status>

Source

pub async fn campus_mng_detail( &mut self, request: impl IntoRequest<CampusMngDetailReq>, ) -> Result<Response<CampusMngDetailReply>, Status>

Source

pub async fn campus_mng_quiz_operate( &mut self, request: impl IntoRequest<CampusMngQuizOperateReq>, ) -> Result<Response<CampusMngQuizOperateReply>, Status>

Source

pub async fn campus_mng_submit( &mut self, request: impl IntoRequest<CampusMngSubmitReq>, ) -> Result<Response<CampusMngSubmitReply>, Status>

Source

pub async fn campus_rcmd( &mut self, request: impl IntoRequest<CampusRcmdReq>, ) -> Result<Response<CampusRcmdReply>, Status>

Source

pub async fn campus_rcmd_feed( &mut self, request: impl IntoRequest<CampusRcmdFeedReq>, ) -> Result<Response<CampusRcmdFeedReply>, Status>

Source

pub async fn campus_recommend( &mut self, request: impl IntoRequest<CampusRecommendReq>, ) -> Result<Response<CampusRecommendReply>, Status>

Source

pub async fn campus_red_dot( &mut self, request: impl IntoRequest<CampusRedDotReq>, ) -> Result<Response<CampusRedDotReply>, Status>

Source

pub async fn campus_square( &mut self, request: impl IntoRequest<CampusSquareReq>, ) -> Result<Response<CampusSquareReply>, Status>

Source

pub async fn campus_topic_rcmd_feed( &mut self, request: impl IntoRequest<CampusTopicRcmdFeedReq>, ) -> Result<Response<CampusTopicRcmdFeedReply>, Status>

Source

pub async fn cooperation_staff_list( &mut self, request: impl IntoRequest<CooperationStaffListReq>, ) -> Result<Response<CooperationStaffListResp>, Status>

Source

pub async fn dyn_addition_common_follow( &mut self, request: impl IntoRequest<DynAdditionCommonFollowReq>, ) -> Result<Response<DynAdditionCommonFollowReply>, Status>

Source

pub async fn dyn_all( &mut self, request: impl IntoRequest<DynAllReq>, ) -> Result<Response<DynAllReply>, Status>

Source

pub async fn dyn_all_personal( &mut self, request: impl IntoRequest<DynAllPersonalReq>, ) -> Result<Response<DynAllPersonalReply>, Status>

Source

pub async fn dyn_all_upd_offset( &mut self, request: impl IntoRequest<DynAllUpdOffsetReq>, ) -> Result<Response<NoReply>, Status>

Source

pub async fn dyn_detail( &mut self, request: impl IntoRequest<DynDetailReq>, ) -> Result<Response<DynDetailReply>, Status>

Source

pub async fn dyn_details( &mut self, request: impl IntoRequest<DynDetailsReq>, ) -> Result<Response<DynDetailsReply>, Status>

Source

pub async fn dyn_fake_card( &mut self, request: impl IntoRequest<DynFakeCardReq>, ) -> Result<Response<DynFakeCardReply>, Status>

Source

pub async fn dyn_friend( &mut self, request: impl IntoRequest<DynFriendReq>, ) -> Result<Response<DynFriendReply>, Status>

Source

pub async fn dyn_light( &mut self, request: impl IntoRequest<DynLightReq>, ) -> Result<Response<DynLightReply>, Status>

Source

pub async fn dyn_mix_up_list_view_more( &mut self, request: impl IntoRequest<DynMixUpListViewMoreReq>, ) -> Result<Response<DynMixUpListViewMoreReply>, Status>

Source

pub async fn dyn_rcmd_up_exchange( &mut self, request: impl IntoRequest<DynRcmdUpExchangeReq>, ) -> Result<Response<DynRcmdUpExchangeReply>, Status>

Source

pub async fn dyn_server_details( &mut self, request: impl IntoRequest<DynServerDetailsReq>, ) -> Result<Response<DynServerDetailsReply>, Status>

Source

pub async fn dyn_space( &mut self, request: impl IntoRequest<DynSpaceReq>, ) -> Result<Response<DynSpaceRsp>, Status>

Source

pub async fn dyn_space_search_details( &mut self, request: impl IntoRequest<DynSpaceSearchDetailsReq>, ) -> Result<Response<DynSpaceSearchDetailsReply>, Status>

Source

pub async fn dyn_tab( &mut self, request: impl IntoRequest<DynTabReq>, ) -> Result<Response<DynTabReply>, Status>

Source

pub async fn dyn_thumb( &mut self, request: impl IntoRequest<DynThumbReq>, ) -> Result<Response<NoReply>, Status>

Source

pub async fn dyn_un_login_rcmd( &mut self, request: impl IntoRequest<DynRcmdReq>, ) -> Result<Response<DynRcmdReply>, Status>

Source

pub async fn dyn_video( &mut self, request: impl IntoRequest<DynVideoReq>, ) -> Result<Response<DynVideoReply>, Status>

Source

pub async fn dyn_video_personal( &mut self, request: impl IntoRequest<DynVideoPersonalReq>, ) -> Result<Response<DynVideoPersonalReply>, Status>

Source

pub async fn dyn_video_upd_offset( &mut self, request: impl IntoRequest<DynVideoUpdOffsetReq>, ) -> Result<Response<NoReply>, Status>

Source

pub async fn dyn_vote( &mut self, request: impl IntoRequest<DynVoteReq>, ) -> Result<Response<DynVoteReply>, Status>

Source

pub async fn feed_filter( &mut self, request: impl IntoRequest<FeedFilterReq>, ) -> Result<Response<FeedFilterReply>, Status>

Source

pub async fn fetch_tab_setting( &mut self, request: impl IntoRequest<NoReq>, ) -> Result<Response<FetchTabSettingReply>, Status>

Source

pub async fn home_subscribe( &mut self, request: impl IntoRequest<HomeSubscribeReq>, ) -> Result<Response<HomeSubscribeReply>, Status>

Source

pub async fn lbs_poi( &mut self, request: impl IntoRequest<LbsPoiReq>, ) -> Result<Response<LbsPoiReply>, Status>

Source

pub async fn legacy_topic_feed( &mut self, request: impl IntoRequest<LegacyTopicFeedReq>, ) -> Result<Response<LegacyTopicFeedReply>, Status>

Source

pub async fn like_list( &mut self, request: impl IntoRequest<LikeListReq>, ) -> Result<Response<LikeListReply>, Status>

Source

pub async fn official_accounts( &mut self, request: impl IntoRequest<OfficialAccountsReq>, ) -> Result<Response<OfficialAccountsReply>, Status>

Source

pub async fn official_dynamics( &mut self, request: impl IntoRequest<OfficialDynamicsReq>, ) -> Result<Response<OfficialDynamicsReply>, Status>

Source

pub async fn quick_consume_more_avatar_list( &mut self, request: impl IntoRequest<QuickConsumeMoreAvatarListReq>, ) -> Result<Response<QuickConsumeMoreAvatarListReply>, Status>

Source

pub async fn reaction_list( &mut self, request: impl IntoRequest<ReactionListReq>, ) -> Result<Response<ReactionListReply>, Status>

Source

pub async fn repost_list( &mut self, request: impl IntoRequest<RepostListReq>, ) -> Result<Response<RepostListRsp>, Status>

Source

pub async fn school_recommend( &mut self, request: impl IntoRequest<SchoolRecommendReq>, ) -> Result<Response<SchoolRecommendReply>, Status>

Source

pub async fn set_decision( &mut self, request: impl IntoRequest<SetDecisionReq>, ) -> Result<Response<NoReply>, Status>

Source

pub async fn set_recent_campus( &mut self, request: impl IntoRequest<SetRecentCampusReq>, ) -> Result<Response<NoReply>, Status>

Source

pub async fn subscribe_campus( &mut self, request: impl IntoRequest<SubscribeCampusReq>, ) -> Result<Response<NoReply>, Status>

Source

pub async fn subscription_click( &mut self, request: impl IntoRequest<SubscriptionClickReq>, ) -> Result<Response<SubscriptionClickResp>, Status>

Source

pub async fn topic_list( &mut self, request: impl IntoRequest<TopicListReq>, ) -> Result<Response<TopicListReply>, Status>

Source

pub async fn topic_square( &mut self, request: impl IntoRequest<TopicSquareReq>, ) -> Result<Response<TopicSquareReply>, Status>

Source

pub async fn unfollow_match( &mut self, request: impl IntoRequest<UnfollowMatchReq>, ) -> Result<Response<NoReply>, Status>

Source

pub async fn update_tab_setting( &mut self, request: impl IntoRequest<UpdateTabSettingReq>, ) -> Result<Response<NoReply>, Status>

Trait Implementations§

Source§

impl<T: Clone> Clone for DynamicClient<T>

Source§

fn clone(&self) -> DynamicClient<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for DynamicClient<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> !Freeze for DynamicClient<T>

§

impl<T> RefUnwindSafe for DynamicClient<T>
where T: RefUnwindSafe,

§

impl<T> Send for DynamicClient<T>
where T: Send,

§

impl<T> Sync for DynamicClient<T>
where T: Sync,

§

impl<T> Unpin for DynamicClient<T>
where T: Unpin,

§

impl<T> UnwindSafe for DynamicClient<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more