pub struct MetricRoutingServiceHandle(/* private fields */);Expand description
Concrete type-indexable wrapper around a metric routing service.
Implementations§
Source§impl MetricRoutingServiceHandle
impl MetricRoutingServiceHandle
Sourcepub fn new(service: Arc<dyn MetricRoutingService>) -> Self
pub fn new(service: Arc<dyn MetricRoutingService>) -> Self
Wraps an Axiolid or alternate backend implementation for service registration.
Sourcepub fn route(
&self,
request: &MetricRouteRequest,
) -> Result<MetricRouteOutcome, MetricRoutingError>
pub fn route( &self, request: &MetricRouteRequest, ) -> Result<MetricRouteOutcome, MetricRoutingError>
Executes and validates endpoint identity in the backend response.
Trait Implementations§
Source§impl Clone for MetricRoutingServiceHandle
impl Clone for MetricRoutingServiceHandle
Source§fn clone(&self) -> MetricRoutingServiceHandle
fn clone(&self) -> MetricRoutingServiceHandle
Returns a copy 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 MetricRoutingServiceHandle
impl !RefUnwindSafe for MetricRoutingServiceHandle
impl Send for MetricRoutingServiceHandle
impl Sync for MetricRoutingServiceHandle
impl Unpin for MetricRoutingServiceHandle
impl !UnwindSafe for MetricRoutingServiceHandle
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