Struct deno_core::Extension

source ·
pub struct Extension { /* private fields */ }

Implementations§

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.

Called at JsRuntime startup to initialize ops in the isolate.

Allows setting up the initial op-state of an isolate at startup.

init_middleware lets us middleware op registrations, it’s called before init_ops

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.