pub struct Engine<O: OuterVm> { /* private fields */ }Expand description
An engine that drives execution of refine CoreVM service entry point.
Implementations§
Source§impl<O: OuterVm> Engine<O>
impl<O: OuterVm> Engine<O>
pub fn new( payload: CoreVmPayload, extrinsics: CoreVmExtrinsics, work_package_params: WorkPackageParams, outer_vm: O, ) -> Result<Self, InitError>
pub fn run(self) -> Result<(CoreVmOutput, O, InputStats), RunError>
Auto Trait Implementations§
impl<O> Freeze for Engine<O>
impl<O> !RefUnwindSafe for Engine<O>
impl<O> Send for Engine<O>
impl<O> Sync for Engine<O>
impl<O> Unpin for Engine<O>
impl<O> UnsafeUnpin for Engine<O>
impl<O> !UnwindSafe for Engine<O>
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