Struct deno_core::CreateRealmOptions
source · pub struct CreateRealmOptions {
pub module_loader: Option<Rc<dyn ModuleLoader>>,
}
Fields§
§module_loader: Option<Rc<dyn ModuleLoader>>
Implementation of ModuleLoader
which will be
called when V8 requests to load ES modules in the realm.
If not provided, there will be an error if code being executed tries to load modules from the realm.
Trait Implementations§
source§impl Default for CreateRealmOptions
impl Default for CreateRealmOptions
source§fn default() -> CreateRealmOptions
fn default() -> CreateRealmOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CreateRealmOptions
impl !Send for CreateRealmOptions
impl !Sync for CreateRealmOptions
impl Unpin for CreateRealmOptions
impl !UnwindSafe for CreateRealmOptions
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