pub struct RouteGuideClient {
pub client: Client,
}Fields§
§client: ClientImplementations§
Source§impl RouteGuideClient
impl RouteGuideClient
pub fn new(channel: Channel) -> Self
pub fn get_feature_opt(&self, req: &Point, opt: CallOption) -> Result<Feature>
pub fn get_feature(&self, req: &Point) -> Result<Feature>
pub fn get_feature_async_opt( &self, req: &Point, opt: CallOption, ) -> Result<ClientUnaryReceiver<Feature>>
pub fn get_feature_async( &self, req: &Point, ) -> Result<ClientUnaryReceiver<Feature>>
pub fn list_features_opt( &self, req: &Rectangle, opt: CallOption, ) -> Result<ClientSStreamReceiver<Feature>>
pub fn list_features( &self, req: &Rectangle, ) -> Result<ClientSStreamReceiver<Feature>>
pub fn record_route_opt( &self, opt: CallOption, ) -> Result<(ClientCStreamSender<Point>, ClientCStreamReceiver<RouteSummary>)>
pub fn record_route( &self, ) -> Result<(ClientCStreamSender<Point>, ClientCStreamReceiver<RouteSummary>)>
pub fn route_chat_opt( &self, opt: CallOption, ) -> Result<(ClientDuplexSender<RouteNote>, ClientDuplexReceiver<RouteNote>)>
pub fn route_chat( &self, ) -> Result<(ClientDuplexSender<RouteNote>, ClientDuplexReceiver<RouteNote>)>
pub fn spawn<F>(&self, f: F)
Trait Implementations§
Source§impl Clone for RouteGuideClient
impl Clone for RouteGuideClient
Source§fn clone(&self) -> RouteGuideClient
fn clone(&self) -> RouteGuideClient
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 RouteGuideClient
impl !RefUnwindSafe for RouteGuideClient
impl Send for RouteGuideClient
impl Sync for RouteGuideClient
impl Unpin for RouteGuideClient
impl !UnwindSafe for RouteGuideClient
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