pub trait Asset: 'static {
type Source: Clone + Hash + Send;
type Output: Clone + Send;
// Required method
fn load(
source: Self::Source,
cx: &mut App,
) -> impl Future<Output = Self::Output> + Send + 'static;
}Expand description
A trait for asynchronous asset loading.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.