pub trait InjectableKey:
Send
+ Sync
+ 'static { }Available on crate feature
di only.Expand description
Marker trait for dependency provider keys.
A key names one provider slot. Multiple providers may produce the same value type as long as they use different key types.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl InjectableKey for AdminDatabaseKey
Available on not (
target_family=wasm and target_os=unknown).impl InjectableKey for AdminSiteKey
Available on not (
target_family=wasm and target_os=unknown).