pub trait LabelLoader: Send + Sync {
// Required methods
fn supports(&self, key: &str) -> bool;
fn load(
&self,
key: &str,
ids: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Label>, ExtensionError>> + Send>>;
}Required Methods§
fn supports(&self, key: &str) -> bool
fn load( &self, key: &str, ids: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Label>, ExtensionError>> + Send>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".