logo
pub trait GetResource<T> {
    fn get_resource<'life0, 'async_trait>(
        self,
        runtime: &'life0 Runtime
    ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Used to get resources of type T from factories.

This is mainly meant for consumption by our code generator and should generally not be implemented by users. Some resources cannot cross the boundary between the api runtime and the runtime of services. These resources should be created on the passed in runtime.

Required Methods

Implementors