[][src]Trait nature::db::MetaDao

pub trait MetaDao: Sync + Send {
#[must_use]    fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        meta_str: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<RawMeta>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn insert<'life0, 'life1, 'async_trait>(
        &'life0 self,
        define: &'life1 RawMeta
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn update_flag<'life0, 'life1, 'async_trait>(
        &'life0 self,
        meta_str: &'life1 str,
        flag_f: i32
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn delete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        m: &'life1 Meta
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn get<'life0, 'life1, 'async_trait>(
    &'life0 self,
    meta_str: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<RawMeta>>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

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

#[must_use]fn update_flag<'life0, 'life1, 'async_trait>(
    &'life0 self,
    meta_str: &'life1 str,
    flag_f: i32
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn delete<'life0, 'life1, 'async_trait>(
    &'life0 self,
    m: &'life1 Meta
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl MetaDao for MetaDaoImpl[src]

Loading content...