pub struct GreeterClient {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl GreeterClient
impl GreeterClient
pub fn new(channel: Channel) -> Self
pub fn say_hello_opt( &self, req: &HelloRequest, opt: CallOption, ) -> Result<HelloReply>
pub fn say_hello(&self, req: &HelloRequest) -> Result<HelloReply>
pub fn say_hello_async_opt( &self, req: &HelloRequest, opt: CallOption, ) -> Result<ClientUnaryReceiver<HelloReply>>
pub fn say_hello_async( &self, req: &HelloRequest, ) -> Result<ClientUnaryReceiver<HelloReply>>
pub fn spawn<F>(&self, f: F)
Trait Implementations§
Source§impl Clone for GreeterClient
impl Clone for GreeterClient
Source§fn clone(&self) -> GreeterClient
fn clone(&self) -> GreeterClient
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 GreeterClient
impl !RefUnwindSafe for GreeterClient
impl Send for GreeterClient
impl Sync for GreeterClient
impl Unpin for GreeterClient
impl !UnwindSafe for GreeterClient
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