Skip to main content

AgentVmExt

Trait AgentVmExt 

Source
pub trait AgentVmExt: Sized {
    // Required methods
    fn from_name(
        store: &dyn NameStore,
        specs: Vec<AgentSpec>,
        name: &str,
        region: Option<Region>,
        port: Option<u16>,
    ) -> impl Future<Output = Result<Self, Error>> + Send;
    fn adopt_in(
        region: Region,
        specs: Vec<AgentSpec>,
        microvm_id: impl Into<String>,
        endpoint: impl Into<String>,
        agent_token: impl Into<String>,
        port: Option<u16>,
    ) -> impl Future<Output = Result<Self, Error>> + Send;
}
Expand description

AgentVm’s constructors that resolve credentials for a region.

Required Methods§

Source

fn from_name( store: &dyn NameStore, specs: Vec<AgentSpec>, name: &str, region: Option<Region>, port: Option<u16>, ) -> impl Future<Output = Result<Self, Error>> + Send

Adopts the VM registered as name in store; see Sandbox::from_name (SandboxExt::from_name).

Source

fn adopt_in( region: Region, specs: Vec<AgentSpec>, microvm_id: impl Into<String>, endpoint: impl Into<String>, agent_token: impl Into<String>, port: Option<u16>, ) -> impl Future<Output = Result<Self, Error>> + Send

AgentVm::adopt over a plane resolved for region; the bindings’ entry point.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§