pub trait Service: Actor + Default {
const NAME: &'static str;
}
Available on crate features
runtime-tokio
or runtime-async-std
only.Required Associated Constants§
Sourceconst NAME: &'static str
const NAME: &'static str
Service name.
Note: All the service names must be unique. Having two services
with the same name may result in Registry::service
function panic.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.