pub trait Service:
Clone
+ Send
+ Sync
+ 'static { }Expand description
Marks a type as an injectable service. Register it with App::service.
ⓘ
#[derive(Clone)]
pub struct ProductStore { ... }
impl Service for ProductStore {}Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".