[−][src]Crate deno_core
Re-exports
pub use futures; |
pub use rusty_v8 as v8; |
pub use serde; |
pub use serde_json; |
pub use url; |
Modules
error | |
plugin_api |
Structs
AsyncRefCell | |
CancelHandle | |
Canceled | |
FsModuleLoader | Basic file system module loader. |
JsRuntime | A single execution context of JavaScript. Corresponds roughly to the "Web Worker" concept in the DOM. A JsRuntime is a Future that can be used with an event loop (Tokio, async_std). The JsRuntime future completes when there is an error or when all pending ops have completed. |
ModuleSource | EsModule source code that will be loaded into V8. |
ModuleSpecifier | Resolved module specifier |
NoopModuleLoader | Placeholder structure used when creating a runtime that doesn't support module loading. |
OpState | Maintains the resources and ops inside a JS runtime. |
OpTable | Collection for storing registered ops. The special 'get_op_catalog'
op with OpId |
RcRef | An |
RecursiveModuleLoad | This future is used to implement parallel async module loading. |
ResourceTable | Map-like data structure storing Deno's resources (equivalent to file descriptors). |
RuntimeOptions | |
TryCancelable | |
ZeroCopyBuf | A ZeroCopyBuf encapsulates a slice that's been borrowed from a JavaScript ArrayBuffer object. JavaScript objects can normally be garbage collected, but the existence of a ZeroCopyBuf inhibits this until it is dropped. It behaves much like an Arc<u8>. |
Enums
Cancelable | |
ModuleResolutionError | Error indicating the reason resolving a module specifier failed. |
Op | |
Snapshot |
Traits
CancelFuture | |
CancelTryFuture | |
ModuleLoader | |
RcLike | The |
Resource | All objects that can be store in the resource table should implement the
|
Functions
json_op_async | Creates an op that passes data asynchronously using JSON. |
json_op_sync | Creates an op that passes data synchronously using JSON. |
normalize_path | Normalize all intermediate components of the path (ie. remove "./" and "../" components).
Similar to |
op_close | Remove a resource from the resource table. |
op_resources | Return map of resources with id as key and string representation as value. |
v8_set_flags | Pass the command line arguments to v8. Returns a vector of command line arguments that V8 did not understand. |
v8_version |
Type Definitions
AsyncMut | |
AsyncMutFuture | |
AsyncRef | |
AsyncRefFuture | |
BufVec | |
GetErrorClassFn | |
JsErrorCreateFn | |
ModuleId | |
ModuleLoadId | |
ModuleSourceFuture | |
OpAsyncFuture | |
OpFn | |
OpId | |
ResourceId | A |
ResourceTable2 | Temporary alias for |