Skip to main content

Provider

Trait Provider 

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

Source

type Client<'app>: 'app where 'd: 'app

Required Methods§

Source

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".

Implementors§