Trait zombienet_sdk::NetworkConfigExt

source ·
pub trait NetworkConfigExt {
    // Required methods
    fn spawn_native<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn spawn_k8s<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn spawn_docker<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

source

fn spawn_native<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>
where Self: 'async_trait,

Spawns a network using the native or k8s provider.

§Example:
let network = NetworkConfig::load_from_toml("config.toml")?
    .spawn_native()
    .await?;
source

fn spawn_k8s<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>
where Self: 'async_trait,

source

fn spawn_docker<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§