pub struct Client { /* private fields */ }
Expand description
gRPC client implementation. Used by generated code.
Implementations§
Source§impl Client
impl Client
pub fn call_unary<Req, Resp>( &self, o: RequestOptions, req: Req, method: ArcOrStatic<MethodDescriptor<Req, Resp>>, ) -> SingleResponse<Resp> ⓘ
pub fn call_server_streaming<Req, Resp>( &self, o: RequestOptions, req: Req, method: ArcOrStatic<MethodDescriptor<Req, Resp>>, ) -> StreamingResponse<Resp>
pub fn call_client_streaming<Req, Resp>( &self, o: RequestOptions, method: ArcOrStatic<MethodDescriptor<Req, Resp>>, ) -> impl Future<Output = Result<(ClientRequestSink<Req>, SingleResponse<Resp>)>>
pub fn call_bidi<Req, Resp>( &self, o: RequestOptions, method: ArcOrStatic<MethodDescriptor<Req, Resp>>, ) -> impl Future<Output = Result<(ClientRequestSink<Req>, StreamingResponse<Resp>)>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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