pub struct FrameHandle<'a> { /* private fields */ }Expand description
Handle to the current frame, available inside run_continuable closures. Provides child_call() for opening nested frames.
Implementations§
Source§impl<'a> FrameHandle<'a>
impl<'a> FrameHandle<'a>
Sourcepub fn child_call(&mut self, addr: &ContractAddress) -> FrameBuilder<'_>
pub fn child_call(&mut self, addr: &ContractAddress) -> FrameBuilder<'_>
Open a child frame of the current frame, invoking addr. The
address must differ from every frame already open on the stack (the
reentrance rule); see MockInvocationFrame::open_child_frame.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for FrameHandle<'a>
impl<'a> !Send for FrameHandle<'a>
impl<'a> !Sync for FrameHandle<'a>
impl<'a> !UnwindSafe for FrameHandle<'a>
impl<'a> Freeze for FrameHandle<'a>
impl<'a> Unpin for FrameHandle<'a>
impl<'a> UnsafeUnpin for FrameHandle<'a>
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