Skip to main content

NamedService

Trait NamedService 

pub trait NamedService {
    const NAME: &'static str;
}
Available on crate features grpc and http only.
Expand description

A trait to provide a static reference to the service’s name. This is used for routing service’s within the router.

Required Associated Constants§

const NAME: &'static str

The Service-Name as described here.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl<S, I> NamedService for InterceptedService<S, I>
where S: NamedService,

§

const NAME: &'static str = S::NAME

§

impl<S, T> NamedService for Layered<S, T>
where T: NamedService,

§

const NAME: &'static str = T::NAME

§

impl<S> NamedService for GrpcWebService<S>
where S: NamedService,

§

const NAME: &'static str = S::NAME

§

impl<T> NamedService for HealthServer<T>

§

const NAME: &'static str = SERVICE_NAME

§

impl<T> NamedService for LogsServiceServer<T>

§

const NAME: &'static str = SERVICE_NAME

§

impl<T> NamedService for MetricsServiceServer<T>

§

const NAME: &'static str = SERVICE_NAME

§

impl<T> NamedService for TraceServiceServer<T>

§

const NAME: &'static str = SERVICE_NAME