pub trait Resource: Send {
type Output: Send;
// Required method
fn load(
self,
runtime: &Runtime,
) -> impl Future<Output = Result<Self::Output, RuntimeError>> + Send;
}Expand description
Loads one resource using the selected runtime policy and project.
Implementations return a concrete output and a Send future without boxing.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".