dope-runtime 0.21.0

Thread-per-core execution and process lifecycle for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::client;

/// Produces a client from the exact selected provider.
/// The provider type carries its storage loans; each client requires those loans
/// and its driver domain to outlive the issued application scope.
pub trait Provider<'d> {
    type Client<'app>: 'app
    where
        Self: 'app,
        'd: 'app;

    fn provide<'app>(context: client::Context<'_, 'app, 'd, Self>) -> Self::Client<'app>
    where
        Self: 'app,
        'd: 'app;
}