pub struct MockInvocationFrameConfig<'a> { /* private fields */ }Expand description
Builder for one invocation frame’s configuration, opened with
build.
Implementations§
Source§impl<'a> MockInvocationFrameConfig<'a>
impl<'a> MockInvocationFrameConfig<'a>
Sourcepub fn with_calldata(self, calldata: BytesM) -> Self
pub fn with_calldata(self, calldata: BytesM) -> Self
Set the calldata the invoked frame observes (default: empty).
Sourcepub fn with_invoke_flags(self, invoke_flags: InvokeFlagSet) -> Self
pub fn with_invoke_flags(self, invoke_flags: InvokeFlagSet) -> Self
Set the frame’s invoke flags, a bitset of
InvokeFlag values
(default: none).
Sourcepub fn with_gas_limit(self, gas_limit: u64) -> Self
pub fn with_gas_limit(self, gas_limit: u64) -> Self
Set the frame’s gas limit (default: u64::MAX).
Sourcepub fn build(self) -> &'a mut Box<MockInvocationFrame>
pub fn build(self) -> &'a mut Box<MockInvocationFrame>
Open the frame at the FFI level, returning the
MockInvocationFrame.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MockInvocationFrameConfig<'a>
impl<'a> !Send for MockInvocationFrameConfig<'a>
impl<'a> !Sync for MockInvocationFrameConfig<'a>
impl<'a> !UnwindSafe for MockInvocationFrameConfig<'a>
impl<'a> Freeze for MockInvocationFrameConfig<'a>
impl<'a> Unpin for MockInvocationFrameConfig<'a>
impl<'a> UnsafeUnpin for MockInvocationFrameConfig<'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