Trait RPCClient

Source
pub trait RPCClient: Send + Sync {
    // Required methods
    fn fetch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        txn_id: TxnId,
        link: ToUrl<'life1>,
        actor_id: Value,
    ) -> Pin<Box<dyn Future<Output = TCResult<Actor>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        txn: &'life1 Txn,
        link: ToUrl<'life2>,
        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,
        link: ToUrl<'life2>,
        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,
        link: ToUrl<'life2>,
        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 Txn,
        link: ToUrl<'life2>,
        key: Value,
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;

    // Provided method
    fn extract_jwt(&self, txn: &Txn) -> Option<String> { ... }
}

Required Methods§

Source

fn fetch<'life0, 'life1, 'async_trait>( &'life0 self, txn_id: TxnId, link: ToUrl<'life1>, actor_id: Value, ) -> Pin<Box<dyn Future<Output = TCResult<Actor>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, txn: &'life1 Txn, link: ToUrl<'life2>, 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 Txn, link: ToUrl<'life2>, 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 Txn, link: ToUrl<'life2>, 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 Txn, link: ToUrl<'life2>, key: Value, ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Provided Methods§

Source

fn extract_jwt(&self, txn: &Txn) -> Option<String>

Implementors§