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§
sourcefn 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 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.
sourcefn 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 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.
sourcefn 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 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.
sourcefn 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 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.