pub struct RouteGuideClient { /* private fields */ }Available on crate feature
example_generated only.Implementations§
Source§impl RouteGuideClient
impl RouteGuideClient
pub fn new(config: ClientConfig) -> Self
pub fn from_endpoint<T>(ep: T) -> Self
pub fn with<M>(self, middleware: M) -> Self
Sourcepub fn set_send_compressed(&mut self, encoding: CompressionEncoding)
pub fn set_send_compressed(&mut self, encoding: CompressionEncoding)
Set the compression encoding for sending
Sourcepub fn set_accept_compressed(
&mut self,
encodings: impl Into<Arc<[CompressionEncoding]>>,
)
pub fn set_accept_compressed( &mut self, encodings: impl Into<Arc<[CompressionEncoding]>>, )
Set the compression encodings for accepting
pub async fn get_feature( &self, request: Request<Point>, ) -> Result<Response<Feature>, Status>
pub async fn list_features( &self, request: Request<Rectangle>, ) -> Result<Response<Streaming<Feature>>, Status>
pub async fn record_route( &self, request: Request<Streaming<Point>>, ) -> Result<Response<RouteSummary>, Status>
pub async fn route_chat( &self, request: Request<Streaming<RouteNote>>, ) -> Result<Response<Streaming<RouteNote>>, Status>
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