pub trait AttachToLive {
// Required methods
fn attach_native<'async_trait>(
zombie_json_path: PathBuf,
) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>;
fn attach_k8s<'async_trait>(
zombie_json_path: PathBuf,
) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>;
fn attach_docker<'async_trait>(
zombie_json_path: PathBuf,
) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>;
fn attach_k8s_from_json<'async_trait>(
zombie_json: Value,
) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>;
}Required Methods§
Sourcefn attach_native<'async_trait>(
zombie_json_path: PathBuf,
) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>
fn attach_native<'async_trait>( zombie_json_path: PathBuf, ) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>
Attaches to a running live network using the native, docker or k8s provider.
§Example:
let zombie_json_path = PathBuf::from("some/path/zombie.json");
let network = AttachToLiveNetwork::attach_native(zombie_json_path).await?;fn attach_k8s<'async_trait>( zombie_json_path: PathBuf, ) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>
fn attach_docker<'async_trait>( zombie_json_path: PathBuf, ) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>
Sourcefn attach_k8s_from_json<'async_trait>(
zombie_json: Value,
) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>
fn attach_k8s_from_json<'async_trait>( zombie_json: Value, ) -> Pin<Box<dyn Future<Output = Result<Network<LocalFileSystem>, OrchestratorError>> + Send + 'async_trait>>
Attaches to a running live network using the k8s provider, from in-memory
zombie.json content. Its local_base_dir is used as-is.
§Example:
let network = AttachToLiveNetwork::attach_k8s_from_json(zombie_json).await?;Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".