pub struct ServiceStatusRegistry { /* private fields */ }Expand description
Query helper for arbitrary local service names.
Implementations§
Source§impl ServiceStatusRegistry
impl ServiceStatusRegistry
Sourcepub async fn query(&self, service_name: &str) -> Result<ServiceStatus, Error>
pub async fn query(&self, service_name: &str) -> Result<ServiceStatus, Error>
Query one service, returning Unknown when the device omits it.
§Errors
Returns a typed unsupported error or the underlying gRPC status.
Sourcepub async fn query_many<I, S>(
&self,
service_names: I,
) -> Result<HashMap<String, ServiceStatus>, Error>
pub async fn query_many<I, S>( &self, service_names: I, ) -> Result<HashMap<String, ServiceStatus>, Error>
Query several services in one RPC after removing duplicate names.
§Errors
Returns a typed unsupported error or the underlying gRPC status.
Trait Implementations§
Source§impl Clone for ServiceStatusRegistry
impl Clone for ServiceStatusRegistry
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceStatusRegistry
impl !UnwindSafe for ServiceStatusRegistry
impl Freeze for ServiceStatusRegistry
impl Send for ServiceStatusRegistry
impl Sync for ServiceStatusRegistry
impl Unpin for ServiceStatusRegistry
impl UnsafeUnpin for ServiceStatusRegistry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request