pub struct RpcClient<T, D>where
T: GrpcClient,
D: RpcDiscovery,{ /* private fields */ }Expand description
RPC 客户端工厂
T: tonic 生成的客户端类型 (例如: echo_client::EchoClient
Implementations§
Source§impl<T, D> RpcClient<T, D>where
T: GrpcClient,
D: RpcDiscovery,
impl<T, D> RpcClient<T, D>where
T: GrpcClient,
D: RpcDiscovery,
Auto Trait Implementations§
impl<T, D> Freeze for RpcClient<T, D>where
D: Freeze,
impl<T, D> RefUnwindSafe for RpcClient<T, D>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, D> Send for RpcClient<T, D>where
T: Send,
impl<T, D> Sync for RpcClient<T, D>where
T: Sync,
impl<T, D> Unpin for RpcClient<T, D>
impl<T, D> UnwindSafe for RpcClient<T, D>where
D: UnwindSafe,
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> 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