pub trait ProgramRpcServer: Sized + Send + Sync + 'static {
    fn version(&self) -> RpcResult<String>;
    fn create<'life0, 'async_trait>(
        &'life0 self,
        merchant_hash: Hash,
        request: ProgramCreateRequest
    ) -> Pin<Box<dyn Future<Output = RpcResult<ProgramResponse>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn update<'life0, 'async_trait>(
        &'life0 self,
        merchant_hash: Hash,
        request: ProgramUpdateRequest
    ) -> Pin<Box<dyn Future<Output = RpcResult<ProgramResponse>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn lookup<'life0, 'async_trait>(
        &'life0 self,
        merchant_hash: Hash,
        request: ProgramLookupRequest
    ) -> Pin<Box<dyn Future<Output = RpcResult<Option<ProgramResponse>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn into_rpc(self) -> RpcModule<Self> { ... } }
Expand description

Server trait implementation for the ProgramRpc RPC API.

Required Methods

Provided Methods

Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.

Implementors