pub trait Public<State: StateInstance> {
    // Required methods
    fn get<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        txn: &'life1 State::Txn,
        path: &'life2 [PathSegment],
        key: Value
    ) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn put<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        txn: &'life1 State::Txn,
        path: &'life2 [PathSegment],
        key: Value,
        value: State
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn post<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        txn: &'life1 State::Txn,
        path: &'life2 [PathSegment],
        params: Map<State>
    ) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn delete<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        txn: &'life1 State::Txn,
        path: &'life2 [PathSegment],
        key: Value
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

source

fn get<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, txn: &'life1 State::Txn, path: &'life2 [PathSegment], key: Value ) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn put<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, txn: &'life1 State::Txn, path: &'life2 [PathSegment], key: Value, value: State ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn post<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, txn: &'life1 State::Txn, path: &'life2 [PathSegment], params: Map<State> ) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn delete<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, txn: &'life1 State::Txn, path: &'life2 [PathSegment], key: Value ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§

source§

impl<State: StateInstance, T: Route<State> + Debug> Public<State> for T