Struct rquickjs::Ctx [−][src]
pub struct Ctx<'js> { /* fields omitted */ }
Expand description
Context in use, passed to Context::with
.
Implementations
Evaluate a script in global context
Evaluate a script directly from a file.
Compile a module for later use.
Creates promise and resolving functions.
pub fn spawn<F, T>(&self, future: F) where
F: 'static + Future<Output = T> + ParallelSend,
T: 'static + ParallelSend,
This is supported on crate feature futures
only.
pub fn spawn<F, T>(&self, future: F) where
F: 'static + Future<Output = T> + ParallelSend,
T: 'static + ParallelSend,
This is supported on crate feature
futures
only.Spawn future using configured async runtime
This is supported on crate feature registery
only.
This is supported on crate feature
registery
only.Store a value in the registery so references to it can be kept outside the scope of context use.
A registered value can be retrieved from any context belonging to the same runtime.
This is supported on crate feature registery
only.
This is supported on crate feature
registery
only.Remove a value from the registery.
This is supported on crate feature registery
only.
This is supported on crate feature
registery
only.Get a value from the registery.
Trait Implementations
Auto Trait Implementations
impl<'js> !RefUnwindSafe for Ctx<'js>
impl<'js> UnwindSafe for Ctx<'js>
Blanket Implementations
Mutably borrows from an owned value. Read more