Struct deno_core::snapshot::CreateSnapshotOptions
source · pub struct CreateSnapshotOptions {
pub cargo_manifest_dir: &'static str,
pub startup_snapshot: Option<&'static [u8]>,
pub skip_op_registration: bool,
pub extensions: Vec<Extension>,
pub extension_transpiler: Option<Rc<dyn Fn(ModuleName, ModuleCodeString) -> Result<(ModuleCodeString, Option<SourceMapData>), AnyError>>>,
pub with_runtime_cb: Option<Box<dyn Fn(&mut JsRuntimeForSnapshot)>>,
}
Fields§
§cargo_manifest_dir: &'static str
§startup_snapshot: Option<&'static [u8]>
§skip_op_registration: bool
§extensions: Vec<Extension>
§extension_transpiler: Option<Rc<dyn Fn(ModuleName, ModuleCodeString) -> Result<(ModuleCodeString, Option<SourceMapData>), AnyError>>>
§with_runtime_cb: Option<Box<dyn Fn(&mut JsRuntimeForSnapshot)>>
Auto Trait Implementations§
impl !RefUnwindSafe for CreateSnapshotOptions
impl !Send for CreateSnapshotOptions
impl !Sync for CreateSnapshotOptions
impl Unpin for CreateSnapshotOptions
impl !UnwindSafe for CreateSnapshotOptions
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