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.
Omit snapshot and cycle achievements from the receipt returned by
PocketIcBaselineRecipe::reset_non_snapshot_state; the pool derives
those from 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§fn clone(&self) -> ResetReceipt
fn clone(&self) -> ResetReceipt
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 ResetReceipt
impl Debug for ResetReceipt
Source§impl Default for ResetReceipt
impl Default for ResetReceipt
Source§fn default() -> ResetReceipt
fn default() -> ResetReceipt
Returns the “default value” for a type. Read more
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
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.