mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-02-17 19:53:05 +00:00
22 lines
576 B
Rust
22 lines
576 B
Rust
use async_trait::async_trait;
|
|
|
|
use crate::scenario::{DynError, StartNodeOptions, StartedNode};
|
|
|
|
/// Interface for imperative, deployer-backed manual clusters.
|
|
#[async_trait]
|
|
pub trait ManualClusterHandle: Send + Sync {
|
|
async fn start_validator_with(
|
|
&self,
|
|
name: &str,
|
|
options: StartNodeOptions,
|
|
) -> Result<StartedNode, DynError>;
|
|
|
|
async fn start_executor_with(
|
|
&self,
|
|
name: &str,
|
|
options: StartNodeOptions,
|
|
) -> Result<StartedNode, DynError>;
|
|
|
|
async fn wait_network_ready(&self) -> Result<(), DynError>;
|
|
}
|