pub trait Dispatch {
    // Required methods
    fn get<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        txn: &'life1 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 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 Txn,
        path: &'life2 [PathSegment],
        data: 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 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;
    fn finalize<'life0, 'async_trait>(
        &'life0 self,
        txn_id: TxnId
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A part of the host Kernel, responsible for dispatching requests to the local host

Required Methods§

source

fn get<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, txn: &'life1 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,

Route a GET request.

source

fn put<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, txn: &'life1 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,

Route a PUT request.

source

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

Route a POST request.

source

fn delete<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, txn: &'life1 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,

Route a DELETE request.

source

fn finalize<'life0, 'async_trait>( &'life0 self, txn_id: TxnId ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Finalize a transaction

Implementors§

source§

impl Dispatch for Kernel

source§

impl<T: Transact + Clone + Send + Sync + 'static> Dispatch for Cluster<Dir<T>>