Skip to main content

SandboxOutputs

Trait SandboxOutputs 

Source
pub(crate) trait SandboxOutputs {
    // Required method
    fn find_path(
        &self,
        path: impl AsRef<Path> + Send,
    ) -> impl Future<Output = Option<PathBuf>> + Send;
}
Expand description

A handle returned by sandboxes that allows finding build outputs relative to logical sandbox root.

Since different build sandboxes have their own internal directory layout, this trait encapsulates those implementation details and allows callers to query paths in a consistent way.

Required Methods§

Source

fn find_path( &self, path: impl AsRef<Path> + Send, ) -> impl Future<Output = Option<PathBuf>> + Send

Resolves to an absolute filesystem host path that corresponds to path.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SandboxOutputs for BwrapOutputs

Available on Linux only.
Source§

impl SandboxOutputs for OciOutputs

Available on Linux only.