pub struct TestServiceClient {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl TestServiceClient
impl TestServiceClient
pub fn new(channel: Channel) -> Self
pub fn empty_call_opt(&self, req: &Empty, opt: CallOption) -> Result<Empty>
pub fn empty_call(&self, req: &Empty) -> Result<Empty>
pub fn empty_call_async_opt( &self, req: &Empty, opt: CallOption, ) -> Result<ClientUnaryReceiver<Empty>>
pub fn empty_call_async( &self, req: &Empty, ) -> Result<ClientUnaryReceiver<Empty>>
pub fn unary_call_opt( &self, req: &SimpleRequest, opt: CallOption, ) -> Result<SimpleResponse>
pub fn unary_call(&self, req: &SimpleRequest) -> Result<SimpleResponse>
pub fn unary_call_async_opt( &self, req: &SimpleRequest, opt: CallOption, ) -> Result<ClientUnaryReceiver<SimpleResponse>>
pub fn unary_call_async( &self, req: &SimpleRequest, ) -> Result<ClientUnaryReceiver<SimpleResponse>>
pub fn cacheable_unary_call_opt( &self, req: &SimpleRequest, opt: CallOption, ) -> Result<SimpleResponse>
pub fn cacheable_unary_call( &self, req: &SimpleRequest, ) -> Result<SimpleResponse>
pub fn cacheable_unary_call_async_opt( &self, req: &SimpleRequest, opt: CallOption, ) -> Result<ClientUnaryReceiver<SimpleResponse>>
pub fn cacheable_unary_call_async( &self, req: &SimpleRequest, ) -> Result<ClientUnaryReceiver<SimpleResponse>>
pub fn streaming_output_call_opt( &self, req: &StreamingOutputCallRequest, opt: CallOption, ) -> Result<ClientSStreamReceiver<StreamingOutputCallResponse>>
pub fn streaming_output_call( &self, req: &StreamingOutputCallRequest, ) -> Result<ClientSStreamReceiver<StreamingOutputCallResponse>>
pub fn streaming_input_call_opt( &self, opt: CallOption, ) -> Result<(ClientCStreamSender<StreamingInputCallRequest>, ClientCStreamReceiver<StreamingInputCallResponse>)>
pub fn streaming_input_call( &self, ) -> Result<(ClientCStreamSender<StreamingInputCallRequest>, ClientCStreamReceiver<StreamingInputCallResponse>)>
pub fn full_duplex_call_opt( &self, opt: CallOption, ) -> Result<(ClientDuplexSender<StreamingOutputCallRequest>, ClientDuplexReceiver<StreamingOutputCallResponse>)>
pub fn full_duplex_call( &self, ) -> Result<(ClientDuplexSender<StreamingOutputCallRequest>, ClientDuplexReceiver<StreamingOutputCallResponse>)>
pub fn half_duplex_call_opt( &self, opt: CallOption, ) -> Result<(ClientDuplexSender<StreamingOutputCallRequest>, ClientDuplexReceiver<StreamingOutputCallResponse>)>
pub fn half_duplex_call( &self, ) -> Result<(ClientDuplexSender<StreamingOutputCallRequest>, ClientDuplexReceiver<StreamingOutputCallResponse>)>
pub fn unimplemented_call_opt( &self, req: &Empty, opt: CallOption, ) -> Result<Empty>
pub fn unimplemented_call(&self, req: &Empty) -> Result<Empty>
pub fn unimplemented_call_async_opt( &self, req: &Empty, opt: CallOption, ) -> Result<ClientUnaryReceiver<Empty>>
pub fn unimplemented_call_async( &self, req: &Empty, ) -> Result<ClientUnaryReceiver<Empty>>
pub fn spawn<F>(&self, f: F)
Trait Implementations§
Source§impl Clone for TestServiceClient
impl Clone for TestServiceClient
Source§fn clone(&self) -> TestServiceClient
fn clone(&self) -> TestServiceClient
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 Freeze for TestServiceClient
impl !RefUnwindSafe for TestServiceClient
impl Send for TestServiceClient
impl Sync for TestServiceClient
impl Unpin for TestServiceClient
impl !UnwindSafe for TestServiceClient
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