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§
sourcefn spawn_native<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>where
Self: 'async_trait,
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?;