pub struct DockerDeployProcessSpec { /* private fields */ }Available on crate feature
docker_deploy and (crate features deploy or sim) only.Expand description
Represents a Process running in a docker container
Implementations§
Source§impl DockerDeployProcessSpec
impl DockerDeployProcessSpec
Sourcepub fn base_image(self, image: impl Into<String>) -> Self
pub fn base_image(self, image: impl Into<String>) -> Self
Set the base Docker image for this process.
Defaults to scratch if not specified.
Sourcepub fn linux_compile_type(self, compile_type: LinuxCompileType) -> Self
pub fn linux_compile_type(self, compile_type: LinuxCompileType) -> Self
Set the Linux compile type (glibc or musl) for this process.
Defaults to Musl if not specified.
Sourcepub fn features(
self,
features: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn features( self, features: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Add features to enable when compiling the final binary.
Trait Implementations§
Source§impl Clone for DockerDeployProcessSpec
impl Clone for DockerDeployProcessSpec
Source§impl<'a> ProcessSpec<'a, DockerDeploy> for DockerDeployProcessSpec
impl<'a> ProcessSpec<'a, DockerDeploy> for DockerDeployProcessSpec
Source§fn build(
self,
key: LocationKey,
name_hint: &str,
) -> <DockerDeploy as Deploy<'a>>::Process
fn build( self, key: LocationKey, name_hint: &str, ) -> <DockerDeploy as Deploy<'a>>::Process
Available on crate feature
build only.Auto Trait Implementations§
impl Forget for DockerDeployProcessSpec
impl Freeze for DockerDeployProcessSpec
impl Move for DockerDeployProcessSpec
impl RefUnwindSafe for DockerDeployProcessSpec
impl Send for DockerDeployProcessSpecwhere
RawVecInner: Send,
impl Sync for DockerDeployProcessSpecwhere
RawVecInner: Sync,
impl Unpin for DockerDeployProcessSpec
impl UnsafeUnpin for DockerDeployProcessSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for DockerDeployProcessSpecwhere
RawVecInner: UnwindSafe,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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 moreSource§impl<'a, D, T> IntoProcessSpec<'a, D> for T
impl<'a, D, T> IntoProcessSpec<'a, D> for T
Source§type ProcessSpec = T
type ProcessSpec = T
Available on crate feature
build only.Source§fn into_process_spec(self) -> <T as IntoProcessSpec<'a, D>>::ProcessSpec
fn into_process_spec(self) -> <T as IntoProcessSpec<'a, D>>::ProcessSpec
Available on crate feature
build only.Creates a shared type from an unshared type.