Skip to main content

Service

Trait Service 

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

Source

fn name(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§