pub trait LabelStore: Send + Sync {
// Required methods
fn labels<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Label>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_label<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Label>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_label<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<Label>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn set_label_option<'life0, 'life1, 'async_trait>(
&'life0 self,
label: &'life1 Label,
layer: Option<[u32; 5]>
) -> Pin<Box<dyn Future<Output = Result<Option<Label>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_label<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided methods
fn set_label<'life0, 'life1, 'async_trait>(
&'life0 self,
label: &'life1 Label,
layer: [u32; 5]
) -> Pin<Box<dyn Future<Output = Result<Option<Label>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn clear_label<'life0, 'life1, 'async_trait>(
&'life0 self,
label: &'life1 Label
) -> Pin<Box<dyn Future<Output = Result<Option<Label>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}