pub struct RuntimeBuildCompatibility { /* private fields */ }Expand description
Runtime builds one engine instance can execute deterministically.
The current build is always admitted. Older compatible builds must be
registered explicitly. Unpinned histories are rejected by default once a
worker opts into build fencing; hosts can enable them during a bounded
migration with Self::accept_unpinned.
Implementations§
Source§impl RuntimeBuildCompatibility
impl RuntimeBuildCompatibility
Sourcepub fn new(current_build_id: RuntimeBuildId) -> Self
pub fn new(current_build_id: RuntimeBuildId) -> Self
Create a strict compatibility set containing the current build.
Sourcepub fn with_compatible_build(self, build_id: RuntimeBuildId) -> Self
pub fn with_compatible_build(self, build_id: RuntimeBuildId) -> Self
Declare an older build that this worker can still replay exactly.
Sourcepub fn accept_unpinned(self) -> Self
pub fn accept_unpinned(self) -> Self
Temporarily admit histories created before build pinning was enabled.
Sourcepub fn current_build_id(&self) -> &RuntimeBuildId
pub fn current_build_id(&self) -> &RuntimeBuildId
Return the identity advertised as the current deployed build.
Sourcepub fn compatible_build_ids(&self) -> impl Iterator<Item = &RuntimeBuildId>
pub fn compatible_build_ids(&self) -> impl Iterator<Item = &RuntimeBuildId>
Iterate over the current and explicitly compatible build identities.
Sourcepub fn accepts_unpinned(&self) -> bool
pub fn accepts_unpinned(&self) -> bool
Return whether this worker admits legacy unpinned histories.
Sourcepub fn supports(&self, required_build_id: Option<&RuntimeBuildId>) -> bool
pub fn supports(&self, required_build_id: Option<&RuntimeBuildId>) -> bool
Return whether this compatibility set admits a persisted requirement.
Trait Implementations§
Source§impl Clone for RuntimeBuildCompatibility
impl Clone for RuntimeBuildCompatibility
Source§fn clone(&self) -> RuntimeBuildCompatibility
fn clone(&self) -> RuntimeBuildCompatibility
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more