Skip to main content

RuntimeProvider

Trait RuntimeProvider 

Source
pub trait RuntimeProvider: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn available(&self) -> bool;
    fn docker_host(&self) -> String;
}
Expand description

Probe contract for a single Docker-compatible runtime back-end. Each implementation knows its socket path (or raw DOCKER_HOST) and can report whether it is currently reachable.

Required Methods§

Source

fn name(&self) -> &str

Short, stable identifier used in config keys and log output (e.g. "orbstack", "docker-desktop", "colima", "podman", "docker", "custom").

Source

fn available(&self) -> bool

True when the runtime can be used right now (socket exists, etc.).

Source

fn docker_host(&self) -> String

The value for the DOCKER_HOST env var (e.g. "unix:///…" or "tcp://localhost:2375").

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§