pub struct MockRuntimeBuilder { /* private fields */ }Expand description
Builder for creating mock runtime
Implementations§
Source§impl MockRuntimeBuilder
impl MockRuntimeBuilder
pub fn new() -> Self
pub fn storage(self, storage: MockStorage) -> Self
pub fn trigger(self, trigger: i32) -> Self
pub fn time(self, time: i64) -> Self
pub fn network(self, network: i64) -> Self
pub fn witness(self, address: &[u8]) -> Self
pub fn script_hash(self, hash: &[u8]) -> Self
pub fn gas(self, gas: i64) -> Self
pub fn build(self) -> MockRuntime
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MockRuntimeBuilder
impl RefUnwindSafe for MockRuntimeBuilder
impl Send for MockRuntimeBuilder
impl Sync for MockRuntimeBuilder
impl Unpin for MockRuntimeBuilder
impl UnsafeUnpin for MockRuntimeBuilder
impl UnwindSafe for MockRuntimeBuilder
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