pub struct ResetReceipt(/* private fields */);Expand description
Typed reset guarantees achieved by one preparation pass.
Implementations§
Source§impl ResetReceipt
impl ResetReceipt
Sourcepub fn try_new<I>(achievements: I) -> Result<Self, BaselinePoolContractError>where
I: IntoIterator<Item = ResetAchievement>,
pub fn try_new<I>(achievements: I) -> Result<Self, BaselinePoolContractError>where
I: IntoIterator<Item = ResetAchievement>,
Construct a duplicate-checked non-snapshot reset achievement set.
Snapshot restoration and cycle policy are verified separately through
CanisterRestoreReceipt.
Sourcepub const fn empty() -> Self
pub const fn empty() -> Self
Create an empty receipt for recipes with no non-snapshot reset achievements.
Sourcepub fn get(&self, domain: ResetDomainKind) -> Option<&ResetAchievement>
pub fn get(&self, domain: ResetDomainKind) -> Option<&ResetAchievement>
Read the achievement for one domain.
Sourcepub fn iter(&self) -> impl Iterator<Item = &ResetAchievement>
pub fn iter(&self) -> impl Iterator<Item = &ResetAchievement>
Iterate over achievements in deterministic domain order.
Trait Implementations§
Source§impl Clone for ResetReceipt
impl Clone for ResetReceipt
Source§impl Debug for ResetReceipt
impl Debug for ResetReceipt
Source§impl Default for ResetReceipt
impl Default for ResetReceipt
impl Eq for ResetReceipt
Source§impl PartialEq for ResetReceipt
impl PartialEq for ResetReceipt
impl StructuralPartialEq for ResetReceipt
Auto Trait Implementations§
impl Freeze for ResetReceipt
impl RefUnwindSafe for ResetReceipt
impl Send for ResetReceipt
impl Sync for ResetReceipt
impl Unpin for ResetReceipt
impl UnsafeUnpin for ResetReceipt
impl UnwindSafe for ResetReceipt
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,
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.