sui_cluster_test::cluster

Trait 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§