Trait shuttle_service::GetResource
source · [−]pub trait GetResource<T> {
fn get_resource<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
where
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.