pub trait SupportsMemberId<Id> { }Available on crate feature
build only.Expand description
A deployment backend that can run clusters whose member IDs have type Id.
Each backend’s generated code works with particular ID types.
Hydro Deploy and the simulator use u32, Docker, ECS, and Maelstrom use String, and the
embedded backend accepts any type.
with_cluster requires this trait, so a mismatch is a compile error.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl SupportsMemberId<String> for DockerDeploy
Available on crate feature
docker_deploy and (crate features deploy or sim) only.Docker names each cluster’s members with Strings.
impl SupportsMemberId<String> for EcsDeploy
Available on crate feature
ecs_deploy and (crate features deploy or sim) only.ECS names each cluster’s members with Strings.
impl SupportsMemberId<String> for MaelstromDeploy
Available on crate feature
maelstrom and (crate features deploy or sim) only.Maelstrom names each cluster’s members with Strings.
impl SupportsMemberId<u32> for HydroDeploy
Available on crate feature
deploy and (crate features deploy or sim) only.Hydro numbers each cluster’s members with u32s.
impl<Id> SupportsMemberId<Id> for EmbeddedDeploy
The host of an embedded program identifies each cluster’s members with whatever type it chooses.