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§
Sourcefn name(&self) -> &str
fn name(&self) -> &str
Short, stable identifier used in config keys and log output
(e.g. "orbstack", "docker-desktop", "colima", "podman",
"docker", "custom").
Sourcefn docker_host(&self) -> String
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".