pub struct ContainerRuntimeConfig {
pub engine: Engine,
pub base_image: String,
pub work_root: PathBuf,
pub arches_native: Vec<String>,
pub arches_emulated: Vec<String>,
pub allow_emulated: bool,
pub feed_host_port: Option<u16>,
pub feed_publish_ip: IpAddr,
pub network: Option<String>,
pub variant: Option<String>,
pub version: Option<String>,
pub cli_timeout: Duration,
}Expand description
Container adapter configuration.
Fields§
§engine: EngineEngine.
base_image: StringOperator-pinned base image (name@sha256:...), present locally.
work_root: PathBufDirectory for build contexts and env files.
arches_native: Vec<String>Arches the engine runs natively (aarch64 on Apple silicon).
arches_emulated: Vec<String>Arches it can run under emulation (armv7 on OrbStack).
allow_emulated: boolOperator opt-in to emulated placement (never automatic).
feed_host_port: Option<u16>Host UDP port to publish to the cog’s feed port, if any.
feed_publish_ip: IpAddrHost address the feed port is published on. Loopback by default;
set a LAN address (or 0.0.0.0) so an ESP32 elsewhere on the LAN
can reach a containerized cog.
network: Option<String>Network to attach, if not the engine default.
variant: Option<String>Engine variant (orbstack, engine, desktop) for provides().
version: Option<String>Engine version for provides().
cli_timeout: DurationTimeout for build / run / stop CLI calls.
Implementations§
Trait Implementations§
Source§impl Clone for ContainerRuntimeConfig
impl Clone for ContainerRuntimeConfig
Auto Trait Implementations§
impl Freeze for ContainerRuntimeConfig
impl RefUnwindSafe for ContainerRuntimeConfig
impl Send for ContainerRuntimeConfig
impl Sync for ContainerRuntimeConfig
impl Unpin for ContainerRuntimeConfig
impl UnsafeUnpin for ContainerRuntimeConfig
impl UnwindSafe for ContainerRuntimeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more