pub trait RPCClient<State: StateInstance<Txn = Self>>: Transaction<State::FE> {
    // Required methods
    fn get<'a, 'async_trait, L, V>(
        &'a self,
        link: L,
        key: V
    ) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>>
       where L: Into<ToUrl<'a>> + Send + 'async_trait,
             V: CastInto<Value> + Send + 'async_trait,
             Self: 'async_trait,
             'a: 'async_trait;
    fn put<'a, 'async_trait, L, K, V>(
        &'a self,
        link: L,
        key: K,
        value: V
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
       where L: Into<ToUrl<'a>> + Send + 'async_trait,
             K: CastInto<Value> + Send + 'async_trait,
             V: CastInto<State> + Send + 'async_trait,
             Self: 'async_trait,
             'a: 'async_trait;
    fn post<'a, 'async_trait, L, P>(
        &'a self,
        link: L,
        params: P
    ) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>>
       where L: Into<ToUrl<'a>> + Send + 'async_trait,
             P: CastInto<State> + Send + 'async_trait,
             Self: 'async_trait,
             'a: 'async_trait;
    fn delete<'a, 'async_trait, L, V>(
        &'a self,
        link: L,
        key: V
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
       where L: Into<ToUrl<'a>> + Send + 'async_trait,
             V: CastInto<Value> + Send + 'async_trait,
             Self: 'async_trait,
             'a: 'async_trait;
}
Expand description

A transactional remote procedure call client

Required Methods§

source

fn get<'a, 'async_trait, L, V>( &'a self, link: L, key: V ) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>>
where L: Into<ToUrl<'a>> + Send + 'async_trait, V: CastInto<Value> + Send + 'async_trait, Self: 'async_trait, 'a: 'async_trait,

Resolve a GET op within this transaction context.

source

fn put<'a, 'async_trait, L, K, V>( &'a self, link: L, key: K, value: V ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where L: Into<ToUrl<'a>> + Send + 'async_trait, K: CastInto<Value> + Send + 'async_trait, V: CastInto<State> + Send + 'async_trait, Self: 'async_trait, 'a: 'async_trait,

Resolve a PUT op within this transaction context.

source

fn post<'a, 'async_trait, L, P>( &'a self, link: L, params: P ) -> Pin<Box<dyn Future<Output = TCResult<State>> + Send + 'async_trait>>
where L: Into<ToUrl<'a>> + Send + 'async_trait, P: CastInto<State> + Send + 'async_trait, Self: 'async_trait, 'a: 'async_trait,

Resolve a POST op within this transaction context.

source

fn delete<'a, 'async_trait, L, V>( &'a self, link: L, key: V ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where L: Into<ToUrl<'a>> + Send + 'async_trait, V: CastInto<Value> + Send + 'async_trait, Self: 'async_trait, 'a: 'async_trait,

Resolve a DELETE op within this transaction context.

Object Safety§

This trait is not object safe.

Implementors§