Trait sui_cluster_test::cluster::Cluster

source ·
pub trait Cluster {
    // Required methods
    fn start<'life0, 'async_trait>(
        options: &'life0 ClusterTestOpt,
    ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
       where Self: Sized + 'async_trait,
             'life0: 'async_trait;
    fn fullnode_url(&self) -> &str;
    fn user_key(&self) -> AccountKeyPair;
    fn indexer_url(&self) -> &Option<String>;
    fn remote_faucet_url(&self) -> Option<&str>;
    fn local_faucet_key(&self) -> Option<&AccountKeyPair>;
    fn config_directory(&self) -> &Path;
}
Expand description

Cluster Abstraction

Required Methods§

source

fn start<'life0, 'async_trait>( options: &'life0 ClusterTestOpt, ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where Self: Sized + 'async_trait, 'life0: 'async_trait,

source

fn fullnode_url(&self) -> &str

source

fn user_key(&self) -> AccountKeyPair

source

fn indexer_url(&self) -> &Option<String>

source

fn remote_faucet_url(&self) -> Option<&str>

Returns faucet url in a remote cluster.

source

fn local_faucet_key(&self) -> Option<&AccountKeyPair>

Returns faucet key in a local cluster.

source

fn config_directory(&self) -> &Path

Place to put config for the wallet, and any locally running services.

Trait Implementations§

source§

impl Cluster for Box<dyn Cluster + Send + Sync>

source§

fn start<'life0, 'async_trait>( _options: &'life0 ClusterTestOpt, ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn fullnode_url(&self) -> &str

source§

fn indexer_url(&self) -> &Option<String>

source§

fn user_key(&self) -> AccountKeyPair

source§

fn remote_faucet_url(&self) -> Option<&str>

Returns faucet url in a remote cluster.
source§

fn local_faucet_key(&self) -> Option<&AccountKeyPair>

Returns faucet key in a local cluster.
source§

fn config_directory(&self) -> &Path

Place to put config for the wallet, and any locally running services.

Implementations on Foreign Types§

source§

impl Cluster for Box<dyn Cluster + Send + Sync>

source§

fn start<'life0, 'async_trait>( _options: &'life0 ClusterTestOpt, ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn fullnode_url(&self) -> &str

source§

fn indexer_url(&self) -> &Option<String>

source§

fn user_key(&self) -> AccountKeyPair

source§

fn remote_faucet_url(&self) -> Option<&str>

source§

fn local_faucet_key(&self) -> Option<&AccountKeyPair>

source§

fn config_directory(&self) -> &Path

Implementors§