pub struct WrapOptions {
pub port: u16,
pub workdir: Option<String>,
pub inherit_workdir: bool,
}Expand description
What wrap_dockerfile needs besides the task text.
Fields§
§port: u16The agent port the stanza’s ENV AGENTD_PORT and EXPOSE name. It must be the port
the create call sends as hooks.port — ControlPlane::port
— which require_matching_agentd_port checks at the create call.
workdir: Option<String>A working directory for the stanza to create and set, exactly as
default_dockerfile writes one. One absolute path; Some("") reads as None, the
same way the default generator reads it.
inherit_workdir: boolThe caller relies on the image WORKDIR — an exec with no cwd runs there — so one
must be declared: by the task Dockerfile or by WrapOptions::workdir. Off by
default, because a task with no WORKDIR runs its commands in / under Docker too,
and a harness reproducing that has nothing to refuse.
Trait Implementations§
Source§impl Clone for WrapOptions
impl Clone for WrapOptions
Source§fn clone(&self) -> WrapOptions
fn clone(&self) -> WrapOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WrapOptions
impl Debug for WrapOptions
Source§impl Default for WrapOptions
impl Default for WrapOptions
Source§fn default() -> WrapOptions
fn default() -> WrapOptions
Returns the “default value” for a type. Read more
impl Eq for WrapOptions
Source§impl PartialEq for WrapOptions
impl PartialEq for WrapOptions
impl StructuralPartialEq for WrapOptions
Auto Trait Implementations§
impl Freeze for WrapOptions
impl RefUnwindSafe for WrapOptions
impl Send for WrapOptions
impl Sync for WrapOptions
impl Unpin for WrapOptions
impl UnsafeUnpin for WrapOptions
impl UnwindSafe for WrapOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreCreates a shared type from an unshared type.