pub struct BenchmarkServiceClient {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl BenchmarkServiceClient
impl BenchmarkServiceClient
pub fn new(channel: Channel) -> Self
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 streaming_call_opt( &self, opt: CallOption, ) -> Result<(ClientDuplexSender<SimpleRequest>, ClientDuplexReceiver<SimpleResponse>)>
pub fn streaming_call( &self, ) -> Result<(ClientDuplexSender<SimpleRequest>, ClientDuplexReceiver<SimpleResponse>)>
pub fn streaming_from_client_opt( &self, opt: CallOption, ) -> Result<(ClientCStreamSender<SimpleRequest>, ClientCStreamReceiver<SimpleResponse>)>
pub fn streaming_from_client( &self, ) -> Result<(ClientCStreamSender<SimpleRequest>, ClientCStreamReceiver<SimpleResponse>)>
pub fn streaming_from_server_opt( &self, req: &SimpleRequest, opt: CallOption, ) -> Result<ClientSStreamReceiver<SimpleResponse>>
pub fn streaming_from_server( &self, req: &SimpleRequest, ) -> Result<ClientSStreamReceiver<SimpleResponse>>
pub fn streaming_both_ways_opt( &self, opt: CallOption, ) -> Result<(ClientDuplexSender<SimpleRequest>, ClientDuplexReceiver<SimpleResponse>)>
pub fn streaming_both_ways( &self, ) -> Result<(ClientDuplexSender<SimpleRequest>, ClientDuplexReceiver<SimpleResponse>)>
pub fn spawn<F>(&self, f: F)
Trait Implementations§
Source§impl Clone for BenchmarkServiceClient
impl Clone for BenchmarkServiceClient
Source§fn clone(&self) -> BenchmarkServiceClient
fn clone(&self) -> BenchmarkServiceClient
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 BenchmarkServiceClient
impl !RefUnwindSafe for BenchmarkServiceClient
impl Send for BenchmarkServiceClient
impl Sync for BenchmarkServiceClient
impl Unpin for BenchmarkServiceClient
impl !UnwindSafe for BenchmarkServiceClient
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