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§
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>
sourcefn remote_faucet_url(&self) -> Option<&str>
fn remote_faucet_url(&self) -> Option<&str>
Returns faucet url in a remote cluster.
sourcefn local_faucet_key(&self) -> Option<&AccountKeyPair>
fn local_faucet_key(&self) -> Option<&AccountKeyPair>
Returns faucet key in a local cluster.
sourcefn config_directory(&self) -> &Path
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>
impl Cluster for Box<dyn Cluster + Send + Sync>
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,
fn fullnode_url(&self) -> &str
fn indexer_url(&self) -> &Option<String>
fn user_key(&self) -> AccountKeyPair
source§fn remote_faucet_url(&self) -> Option<&str>
fn remote_faucet_url(&self) -> Option<&str>
Returns faucet url in a remote cluster.
source§fn local_faucet_key(&self) -> Option<&AccountKeyPair>
fn local_faucet_key(&self) -> Option<&AccountKeyPair>
Returns faucet key in a local cluster.
source§fn config_directory(&self) -> &Path
fn config_directory(&self) -> &Path
Place to put config for the wallet, and any locally running services.