Trait indy_vdr::pool::Pool

source ·
pub trait Pool: Clone {
    type Request: PoolRequest;

    // Required methods
    fn get_config(&self) -> &PoolConfig;
    fn create_request(
        &self,
        req_id: String,
        req_json: String
    ) -> LocalBoxFuture<'_, VdrResult<Self::Request>>;
    fn get_merkle_tree(&self) -> &MerkleTree;
    fn get_node_aliases(&self) -> Vec<String>;
    fn get_refreshed(&self) -> bool;
    fn get_verifier_info(&self) -> VdrResult<Verifiers>;

    // Provided methods
    fn get_merkle_tree_info(&self) -> (String, usize) { ... }
    fn get_request_builder(&self) -> RequestBuilder { ... }
    fn get_transactions(&self) -> PoolTransactions { ... }
}
Expand description

A generic verifier pool with support for creating pool transaction requests

Required Associated Types§

Required Methods§

source

fn get_config(&self) -> &PoolConfig

Get the pool configuration for this instance

source

fn create_request( &self, req_id: String, req_json: String ) -> LocalBoxFuture<'_, VdrResult<Self::Request>>

Create a new pool request instance

source

fn get_merkle_tree(&self) -> &MerkleTree

Get the merkle tree representing the verifier pool transactions

source

fn get_node_aliases(&self) -> Vec<String>

A sequence of verifier node aliases

source

fn get_refreshed(&self) -> bool

Determine whether a refresh has been performed.

source

fn get_verifier_info(&self) -> VdrResult<Verifiers>

Get the summarized verifier details.

Provided Methods§

source

fn get_merkle_tree_info(&self) -> (String, usize)

Get the size and root of the pool transactions merkle tree

source

fn get_request_builder(&self) -> RequestBuilder

Get a request builder corresponding to this verifier pool

source

fn get_transactions(&self) -> PoolTransactions

Get the set of verifier pool transactions

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<S, T> Pool for PoolImpl<S, T>
where S: AsRef<PoolSetup> + Clone, T: Networker + Clone,