#[non_exhaustive]pub enum StateResetPolicy {
ResetByRecipe,
ValidateUnchanged,
IrrelevantByRecipeContract,
RebuildOnChange,
}Expand description
Generic handling for reset domains without a more specific policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ResetByRecipe
Reset the domain through caller-owned recipe logic.
ValidateUnchanged
Validate that the domain remained unchanged.
IrrelevantByRecipeContract
Explicitly declare the domain irrelevant to this recipe’s guarantees.
RebuildOnChange
Treat any relevant change as requiring slot reconstruction.
Trait Implementations§
Source§impl Clone for StateResetPolicy
impl Clone for StateResetPolicy
Source§fn clone(&self) -> StateResetPolicy
fn clone(&self) -> StateResetPolicy
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 moreimpl Copy for StateResetPolicy
Source§impl Debug for StateResetPolicy
impl Debug for StateResetPolicy
impl Eq for StateResetPolicy
Source§impl PartialEq for StateResetPolicy
impl PartialEq for StateResetPolicy
impl StructuralPartialEq for StateResetPolicy
Auto Trait Implementations§
impl Freeze for StateResetPolicy
impl RefUnwindSafe for StateResetPolicy
impl Send for StateResetPolicy
impl Sync for StateResetPolicy
impl Unpin for StateResetPolicy
impl UnsafeUnpin for StateResetPolicy
impl UnwindSafe for StateResetPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.