Skip to main content

AccumulateRpc

Trait AccumulateRpc 

Source
pub trait AccumulateRpc {
    // Required method
    fn rpc_call<'life0, 'life1, 'life2, 'async_trait, TParams, TResult>(
        &'life0 self,
        method: &'life1 str,
        params: &'life2 TParams,
    ) -> Pin<Box<dyn Future<Output = Result<TResult, Error>> + Send + 'async_trait>>
       where TParams: 'async_trait + Serialize + Send + Sync,
             TResult: 'async_trait + for<'de> Deserialize<'de>,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn rpc_call<'life0, 'life1, 'life2, 'async_trait, TParams, TResult>( &'life0 self, method: &'life1 str, params: &'life2 TParams, ) -> Pin<Box<dyn Future<Output = Result<TResult, Error>> + Send + 'async_trait>>
where TParams: 'async_trait + Serialize + Send + Sync, TResult: 'async_trait + for<'de> Deserialize<'de>, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§