pub struct CachedPocketIcBaselineGuard<'a, T> { /* private fields */ }Expand description
CachedPocketIcBaselineGuard
Implementations§
Source§impl<T> CachedPocketIcBaselineGuard<'_, T>
impl<T> CachedPocketIcBaselineGuard<'_, T>
Sourcepub fn pocket_ic(&self) -> &PocketIc
pub fn pocket_ic(&self) -> &PocketIc
Borrow the owned PocketIC instance behind this cached baseline guard.
Sourcepub fn metadata_mut(&mut self) -> &mut T
pub fn metadata_mut(&mut self) -> &mut T
Mutably borrow the captured metadata behind this cached baseline guard.
Sourcepub fn restore(
&self,
controller_id: Principal,
) -> Result<(), ControllerSnapshotError>
pub fn restore( &self, controller_id: Principal, ) -> Result<(), ControllerSnapshotError>
Restore the captured snapshot set without adding cycles.
Sourcepub fn restore_with_funding(
&self,
controller_id: Principal,
funding: SnapshotRestoreFunding,
) -> Result<(), ControllerSnapshotError>
pub fn restore_with_funding( &self, controller_id: Principal, funding: SnapshotRestoreFunding, ) -> Result<(), ControllerSnapshotError>
Restore the captured snapshot set with an explicit cycle-funding policy.
Auto Trait Implementations§
impl<'a, T> !Send for CachedPocketIcBaselineGuard<'a, T>
impl<'a, T> Freeze for CachedPocketIcBaselineGuard<'a, T>
impl<'a, T> RefUnwindSafe for CachedPocketIcBaselineGuard<'a, T>
impl<'a, T> Sync for CachedPocketIcBaselineGuard<'a, T>where
T: Sync,
impl<'a, T> Unpin for CachedPocketIcBaselineGuard<'a, T>
impl<'a, T> UnsafeUnpin for CachedPocketIcBaselineGuard<'a, T>
impl<'a, T> UnwindSafe for CachedPocketIcBaselineGuard<'a, T>
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