pub enum LivePolicyPatch {
ReplaceSignalPolicy(ReplaceSignalPolicy),
ReplaceGovernancePolicy(ReplaceGovernancePolicy),
TightenResourceQuota(TightenResourceQuota),
ReplaceRecoveryPolicy(ReplaceRecoveryPolicy),
}Expand description
The closed set of policies that may change while an operation runs (§13.2).
Everything absent from this union is boot-only by construction. SIGNAL_POLICY_VERSION and
SignalPolicyConfig.version are gone: their optimistic-concurrency role is now
ApplyPolicyPatchCommand::expected_revision, and §16.1 leaves exactly two revision markers
on the wire (abi_version, checkpoint_version).
Variants§
ReplaceSignalPolicy(ReplaceSignalPolicy)
ReplaceGovernancePolicy(ReplaceGovernancePolicy)
TightenResourceQuota(TightenResourceQuota)
ReplaceRecoveryPolicy(ReplaceRecoveryPolicy)
Implementations§
Source§impl LivePolicyPatch
impl LivePolicyPatch
Sourcepub fn apply_to(
&self,
current: &ResolvedOperationConfig,
) -> Result<ResolvedOperationConfig, WireRejection>
pub fn apply_to( &self, current: &ResolvedOperationConfig, ) -> Result<ResolvedOperationConfig, WireRejection>
Produce the configuration this patch would install, or reject it. Pure: it never mutates
the input, which is what makes LivePolicyState::apply all-or-nothing.
Trait Implementations§
Source§impl Clone for LivePolicyPatch
impl Clone for LivePolicyPatch
Source§fn clone(&self) -> LivePolicyPatch
fn clone(&self) -> LivePolicyPatch
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 LivePolicyPatch
impl Debug for LivePolicyPatch
Source§impl<'de> Deserialize<'de> for LivePolicyPatch
impl<'de> Deserialize<'de> for LivePolicyPatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LivePolicyPatch
impl PartialEq for LivePolicyPatch
Source§impl Serialize for LivePolicyPatch
impl Serialize for LivePolicyPatch
impl StructuralPartialEq for LivePolicyPatch
Auto Trait Implementations§
impl Freeze for LivePolicyPatch
impl RefUnwindSafe for LivePolicyPatch
impl Send for LivePolicyPatch
impl Sync for LivePolicyPatch
impl Unpin for LivePolicyPatch
impl UnsafeUnpin for LivePolicyPatch
impl UnwindSafe for LivePolicyPatch
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