Skip to main content

Isolation

Trait Isolation 

Source
pub trait Isolation:
    Send
    + Sync
    + Debug {
    // Required methods
    fn name(&self) -> &'static str;
    fn is_unsafe(&self) -> bool;
    fn configure(&self, host_config: &mut HostConfig);
}
Expand description

An isolation backend: how runner containers are created so their Docker Engine cannot reach the host.

Required Methods§

Source

fn name(&self) -> &'static str

The name runnerd.toml uses, also put on the container’s runnerd.isolation label.

Source

fn is_unsafe(&self) -> bool

Whether a job in the container can take over the host.

Source

fn configure(&self, host_config: &mut HostConfig)

Sets the container’s runtime and privileges.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§