Struct mav_sdk::grpc::info::InfoServiceClient [−][src]
pub struct InfoServiceClient<T> { /* fields omitted */ }
Expand description
Provide information about the hardware and/or software of a system.
Implementations
impl<T> InfoServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + Sync + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> InfoServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + Sync + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> InfoServiceClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn get_flight_information(
&mut self,
request: impl IntoRequest<GetFlightInformationRequest>
) -> Result<Response<GetFlightInformationResponse>, Status>
pub async fn get_flight_information(
&mut self,
request: impl IntoRequest<GetFlightInformationRequest>
) -> Result<Response<GetFlightInformationResponse>, Status>
Get flight information of the system.
pub async fn get_identification(
&mut self,
request: impl IntoRequest<GetIdentificationRequest>
) -> Result<Response<GetIdentificationResponse>, Status>
pub async fn get_identification(
&mut self,
request: impl IntoRequest<GetIdentificationRequest>
) -> Result<Response<GetIdentificationResponse>, Status>
Get the identification of the system.
pub async fn get_product(
&mut self,
request: impl IntoRequest<GetProductRequest>
) -> Result<Response<GetProductResponse>, Status>
pub async fn get_product(
&mut self,
request: impl IntoRequest<GetProductRequest>
) -> Result<Response<GetProductResponse>, Status>
Get product information of the system.
pub async fn get_version(
&mut self,
request: impl IntoRequest<GetVersionRequest>
) -> Result<Response<GetVersionResponse>, Status>
pub async fn get_version(
&mut self,
request: impl IntoRequest<GetVersionRequest>
) -> Result<Response<GetVersionResponse>, Status>
Get the version information of the system.
pub async fn get_speed_factor(
&mut self,
request: impl IntoRequest<GetSpeedFactorRequest>
) -> Result<Response<GetSpeedFactorResponse>, Status>
pub async fn get_speed_factor(
&mut self,
request: impl IntoRequest<GetSpeedFactorRequest>
) -> Result<Response<GetSpeedFactorResponse>, Status>
Get the speed factor of a simulation (with lockstep a simulation can run faster or slower than realtime).
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for InfoServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for InfoServiceClient<T> where
T: Send,
impl<T> Sync for InfoServiceClient<T> where
T: Sync,
impl<T> Unpin for InfoServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for InfoServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request