pub trait Provider<'d> {
type Client<'app>: 'app
where 'd: 'app;
// Required method
fn provide<'app>(
self: Pin<&Self>,
scope: Scope<'app, 'd, Self>,
) -> Self::Client<'app>
where 'd: 'app;
}Expand description
Produces a client from the exact selected provider. The result may retain only runtime scope, not the selector borrow.
Required Associated Types§
Required Methods§
fn provide<'app>(
self: Pin<&Self>,
scope: Scope<'app, 'd, Self>,
) -> Self::Client<'app>where
'd: 'app,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".