Skip to main content

ContainerBuildExecutor

Trait ContainerBuildExecutor 

Source
pub trait ContainerBuildExecutor:
    Send
    + Sync
    + 'static {
    // Required method
    fn execute<'a>(
        &'a self,
        req: &'a ContainerBuildRequest,
    ) -> Pin<Box<dyn Future<Output = Result<ContainerBuildReport>> + Send + 'a>>;
}
Expand description

Implemented by the runtime layer (Seatbelt on macOS, HCS on Windows).

The method is a manually desugared async fn — implementors typically wrap an async block in Box::pin. The future borrows both the executor and the request for 'a, so no cloning is forced on the implementor.

Required Methods§

Source

fn execute<'a>( &'a self, req: &'a ContainerBuildRequest, ) -> Pin<Box<dyn Future<Output = Result<ContainerBuildReport>> + Send + 'a>>

Execute the request’s install plan inside an isolated container, populating req.prefix and nothing else.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§