pub struct Runtime { /* private fields */ }
Expand description
A JavaScript Runtime.
Javy’s Runtime
holds a rquickjs::Runtime
and rquickjs::Context
,
and provides accessors these two propoerties which enable working with
rquickjs
APIs.
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn resolve_pending_jobs(&self) -> Result<()>
pub fn resolve_pending_jobs(&self) -> Result<()>
Resolves all the pending jobs in the queue.
Sourcepub fn has_pending_jobs(&self) -> bool
pub fn has_pending_jobs(&self) -> bool
Returns true if there are pending jobs in the queue.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl !Send for Runtime
impl !Sync for Runtime
impl Unpin for Runtime
impl !UnwindSafe for Runtime
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