pub trait NamedService {
    const NAME: &'static str;
}
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§

source

const NAME: &'static str

The Service-Name as described here.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<S: NamedService, T> NamedService for Either<S, T>

Available on crate feature transport only.
source§

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

Implementors§

source§

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

source§

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