[][src]Trait leaves::dao::LeafDao

pub trait LeafDao {
#[must_use]    fn leaves<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Leaf>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn leaf<'life0, 'async_trait>(
        &'life0 self,
        tag: i32
    ) -> Pin<Box<dyn Future<Output = Result<Leaf>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn insert<'life0, 'async_trait>(
        &'life0 self,
        leaf: Leaf
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn tags<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<i32>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update_max<'life0, 'async_trait>(
        &'life0 self,
        tag: i32
    ) -> Pin<Box<dyn Future<Output = Result<Leaf>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update_max_by_step<'life0, 'async_trait>(
        &'life0 self,
        tag: i32,
        step: i32
    ) -> Pin<Box<dyn Future<Output = Result<Leaf>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn leaves<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Leaf>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

get all leaves

#[must_use]fn leaf<'life0, 'async_trait>(
    &'life0 self,
    tag: i32
) -> Pin<Box<dyn Future<Output = Result<Leaf>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

get a leaf by tag

#[must_use]fn insert<'life0, 'async_trait>(
    &'life0 self,
    leaf: Leaf
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

create a new leaf

#[must_use]fn tags<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<i32>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

get all tags

#[must_use]fn update_max<'life0, 'async_trait>(
    &'life0 self,
    tag: i32
) -> Pin<Box<dyn Future<Output = Result<Leaf>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

update max_id in database

#[must_use]fn update_max_by_step<'life0, 'async_trait>(
    &'life0 self,
    tag: i32,
    step: i32
) -> Pin<Box<dyn Future<Output = Result<Leaf>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

update max_id in database by specified step

Loading content...

Implementors

impl LeafDao for MockLeafDao[src]

impl LeafDao for MongoLeafDao[src]

impl LeafDao for MySqlLeafDao[src]

impl LeafDao for PgLeafDao[src]

impl LeafDao for RedisDao[src]

impl LeafDao for SqliteLeafDao[src]

Loading content...