pub struct CachedPicBaselineGuard<'a, T> { /* private fields */ }Expand description
CachedPicBaselineGuard
Methods from Deref<Target = CachedPicBaseline<T>>§
Sourcepub fn restore(&self, controller_id: Principal)
pub fn restore(&self, controller_id: Principal)
Restore the captured snapshot set back into the owned PocketIC instance.
Sourcepub fn pic_mut(&mut self) -> &mut Pic
pub fn pic_mut(&mut self) -> &mut Pic
Mutably borrow the owned PocketIC instance behind this cached baseline.
Sourcepub fn metadata(&self) -> &T
pub fn metadata(&self) -> &T
Borrow the captured metadata associated with this cached baseline.
Sourcepub fn metadata_mut(&mut self) -> &mut T
pub fn metadata_mut(&mut self) -> &mut T
Mutably borrow the captured metadata associated with this cached baseline.
Trait Implementations§
Source§impl<T> Deref for CachedPicBaselineGuard<'_, T>
impl<T> Deref for CachedPicBaselineGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for CachedPicBaselineGuard<'a, T>
impl<'a, T> RefUnwindSafe for CachedPicBaselineGuard<'a, T>
impl<'a, T> !Send for CachedPicBaselineGuard<'a, T>
impl<'a, T> Sync for CachedPicBaselineGuard<'a, T>where
T: Sync,
impl<'a, T> Unpin for CachedPicBaselineGuard<'a, T>
impl<'a, T> UnsafeUnpin for CachedPicBaselineGuard<'a, T>
impl<'a, T> UnwindSafe for CachedPicBaselineGuard<'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