pub struct DockerDeployClusterSpec { /* private fields */ }Available on crate feature
docker_deploy and (crate features deploy or sim) only.Expand description
Represents a Cluster running across count docker containers.
Implementations§
Source§impl DockerDeployClusterSpec
impl DockerDeployClusterSpec
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 cluster.
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 cluster.
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 DockerDeployClusterSpec
impl Clone for DockerDeployClusterSpec
Source§impl<'a> ClusterSpec<'a, DockerDeploy> for DockerDeployClusterSpec
impl<'a> ClusterSpec<'a, DockerDeploy> for DockerDeployClusterSpec
Source§fn build(
self,
key: LocationKey,
name_hint: &str,
) -> <DockerDeploy as Deploy<'a>>::Cluster
fn build( self, key: LocationKey, name_hint: &str, ) -> <DockerDeploy as Deploy<'a>>::Cluster
Available on crate feature
build only.Auto Trait Implementations§
impl Forget for DockerDeployClusterSpec
impl Freeze for DockerDeployClusterSpec
impl Move for DockerDeployClusterSpec
impl RefUnwindSafe for DockerDeployClusterSpec
impl Send for DockerDeployClusterSpecwhere
RawVecInner: Send,
impl Sync for DockerDeployClusterSpecwhere
RawVecInner: Sync,
impl Unpin for DockerDeployClusterSpec
impl UnsafeUnpin for DockerDeployClusterSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for DockerDeployClusterSpecwhere
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 moreCreates a shared type from an unshared type.