pub struct Runtime<'config> { /* private fields */ }Expand description
EVM runtime.
The runtime wraps an EVM Machine with support of return data and context.
Implementations§
Source§impl<'config> Runtime<'config>
impl<'config> Runtime<'config>
Sourcepub fn new(
code: Rc<Vec<u8>>,
data: Rc<Vec<u8>>,
context: Context,
config: &'config Config,
) -> Runtime<'config>
pub fn new( code: Rc<Vec<u8>>, data: Rc<Vec<u8>>, context: Context, config: &'config Config, ) -> Runtime<'config>
Create a new runtime with given code and data.
Auto Trait Implementations§
impl<'config> Freeze for Runtime<'config>
impl<'config> RefUnwindSafe for Runtime<'config>
impl<'config> !Send for Runtime<'config>
impl<'config> !Sync for Runtime<'config>
impl<'config> Unpin for Runtime<'config>
impl<'config> UnwindSafe for Runtime<'config>
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