Struct hai_runtime::QuickVM
source · pub struct QuickVM { /* private fields */ }Implementations§
source§impl QuickVM
impl QuickVM
pub fn new() -> Self
sourcepub fn context(&self) -> &Context
pub fn context(&self) -> &Context
get the context of the vm, make sure to lock the vm before calling this function
pub async fn call_function( &self, name: &str, args: impl IntoIterator<Item = impl Into<JsValue>> ) -> Result<(), ExecutionError>
pub fn prepare_entry(&self) -> Result<(), ExecutionError>
sourcepub fn block_on_ticking(&self) -> !
pub fn block_on_ticking(&self) -> !
Tick the VM, executing all pending timers
Trait Implementations§
Auto Trait Implementations§
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