Skip to main content

NamedService

Trait NamedService 

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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