Skip to main content

LabelLoader

Trait LabelLoader 

Source
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§

Source

fn supports(&self, key: &str) -> bool

Source

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".

Implementors§