Trait Service

Source
pub trait Service: Actor + Default {
    const NAME: &'static str;
}
Available on crate features runtime-tokio or runtime-async-std only.
Expand description

Extension of an Actor that can be managed by Registry.

Required Associated Constants§

Source

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.

Implementors§