[][src]Trait terminus_store::storage::LabelStore

pub trait LabelStore: Send + Sync {
    fn labels(&self) -> Box<dyn Future<Item = Vec<Label>, Error = Error> + Send>;
fn create_label(
        &self,
        name: &str
    ) -> Box<dyn Future<Item = Label, Error = Error> + Send>;
fn get_label(
        &self,
        name: &str
    ) -> Box<dyn Future<Item = Option<Label>, Error = Error> + Send>;
fn set_label_option(
        &self,
        label: &Label,
        layer: Option<[u32; 5]>
    ) -> Box<dyn Future<Item = Option<Label>, Error = Error> + Send>; fn set_label(
        &self,
        label: &Label,
        layer: [u32; 5]
    ) -> Box<dyn Future<Item = Option<Label>, Error = Error> + Send> { ... }
fn clear_label(
        &self,
        label: &Label
    ) -> Box<dyn Future<Item = Option<Label>, Error = Error> + Send> { ... } }

Required methods

fn labels(&self) -> Box<dyn Future<Item = Vec<Label>, Error = Error> + Send>

fn create_label(
    &self,
    name: &str
) -> Box<dyn Future<Item = Label, Error = Error> + Send>

fn get_label(
    &self,
    name: &str
) -> Box<dyn Future<Item = Option<Label>, Error = Error> + Send>

fn set_label_option(
    &self,
    label: &Label,
    layer: Option<[u32; 5]>
) -> Box<dyn Future<Item = Option<Label>, Error = Error> + Send>

Loading content...

Provided methods

fn set_label(
    &self,
    label: &Label,
    layer: [u32; 5]
) -> Box<dyn Future<Item = Option<Label>, Error = Error> + Send>

fn clear_label(
    &self,
    label: &Label
) -> Box<dyn Future<Item = Option<Label>, Error = Error> + Send>

Loading content...

Implementors

impl LabelStore for DirectoryLabelStore[src]

impl LabelStore for MemoryLabelStore[src]

Loading content...