pub struct RunSpec<'a> {
pub name: &'a str,
pub tag: &'a str,
pub arch: &'a str,
pub limits: RunLimits,
pub env_file: &'a Path,
pub feed_publish: Option<(IpAddr, u16, u16)>,
pub network: Option<&'a str>,
pub detach: bool,
pub ingest_relay: bool,
pub args: &'a [String],
}Expand description
Everything a run needs.
Fields§
§name: &'a strContainer name.
tag: &'a strImage tag.
arch: &'a strPackage arch.
limits: RunLimitsLimits.
env_file: &'a PathEnv file (0600, holds the token).
feed_publish: Option<(IpAddr, u16, u16)>(host address, host UDP port, container feed port) to publish.
network: Option<&'a str>Network to attach, if not the engine default.
detach: boolDetached (instances) or foreground (console runs).
ingest_relay: boolThe image runs the ingest relay as entrypoint (starts as root with
only super::container_relay::RELAY_CAPS; the cog drops to
nobody).
args: &'a [String]Cog arguments.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RunSpec<'a>
impl<'a> RefUnwindSafe for RunSpec<'a>
impl<'a> Send for RunSpec<'a>
impl<'a> Sync for RunSpec<'a>
impl<'a> Unpin for RunSpec<'a>
impl<'a> UnsafeUnpin for RunSpec<'a>
impl<'a> UnwindSafe for RunSpec<'a>
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