Struct deno_core::Extension [−][src]
pub struct Extension { /* fields omitted */ }
Implementations
impl Extension
[src]
impl Extension
[src]pub fn builder() -> ExtensionBuilder
[src]
pub fn init_js(&self) -> Vec<(&'static str, &'static str)>
[src]
pub fn init_js(&self) -> Vec<(&'static str, &'static str)>
[src]returns JS source code to be loaded into the isolate (either at snapshotting, or at startup). as a vector of a tuple of the file name, and the source code.
pub fn init_ops(&mut self) -> Option<Vec<(&'static str, Box<OpFn>)>>
[src]
pub fn init_ops(&mut self) -> Option<Vec<(&'static str, Box<OpFn>)>>
[src]Called at JsRuntime startup to initialize ops in the isolate.
pub fn init_state(&self, state: &mut OpState) -> Result<(), AnyError>
[src]
pub fn init_state(&self, state: &mut OpState) -> Result<(), AnyError>
[src]Allows setting up the initial op-state of an isolate at startup.
pub fn init_middleware(&mut self) -> Option<Box<OpMiddlewareFn>>
[src]
pub fn init_middleware(&mut self) -> Option<Box<OpMiddlewareFn>>
[src]init_middleware lets us middleware op registrations, it’s called before init_ops