pub trait Embed {
// Required method
fn get(
path: &str,
) -> impl Future<Output = Result<Embedded, Error>> + Send + 'static;
}Expand description
A trait used to access to binary assets in a directory.
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.