pub trait Service {
// Required method
fn name(&self) -> &str;
}Expand description
All services should implement this trait. It guarantees that we will be able
to run the service inside a thread (it is Send).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".