Trait replace_rpc::ReplaceApiServer 
source · pub trait ReplaceApiServer<BlockHash, AccountId, H256, ReplaceRequest>: Sized + Send + Sync + 'static {
    // Required methods
    fn get_old_vault_replace_requests(
        &self,
        vault_id: AccountId,
        at: Option<BlockHash>
    ) -> RpcResult<Vec<H256>>;
    fn get_new_vault_replace_requests(
        &self,
        vault_id: AccountId,
        at: Option<BlockHash>
    ) -> RpcResult<Vec<H256>>;
    // Provided method
    fn into_rpc(self) -> RpcModule<Self>
       where BlockHash: Send + Sync + 'static + DeserializeOwned,
             AccountId: Send + Sync + 'static + DeserializeOwned,
             H256: Send + Sync + 'static + Serialize,
             ReplaceRequest: Send + Sync + 'static { ... }
}Expand description
Server trait implementation for the ReplaceApi RPC API.
Required Methods§
fn get_old_vault_replace_requests( &self, vault_id: AccountId, at: Option<BlockHash> ) -> RpcResult<Vec<H256>>
fn get_new_vault_replace_requests( &self, vault_id: AccountId, at: Option<BlockHash> ) -> RpcResult<Vec<H256>>
Provided Methods§
sourcefn into_rpc(self) -> RpcModule<Self>where
    BlockHash: Send + Sync + 'static + DeserializeOwned,
    AccountId: Send + Sync + 'static + DeserializeOwned,
    H256: Send + Sync + 'static + Serialize,
    ReplaceRequest: Send + Sync + 'static,
 
fn into_rpc(self) -> RpcModule<Self>where BlockHash: Send + Sync + 'static + DeserializeOwned, AccountId: Send + Sync + 'static + DeserializeOwned, H256: Send + Sync + 'static + Serialize, ReplaceRequest: Send + Sync + 'static,
Collects all the methods and subscriptions defined in the trait and adds them into a single RpcModule.