Struct deno_core::snapshot_util::CreateSnapshotOptions
source · pub struct CreateSnapshotOptions {
pub cargo_manifest_dir: &'static str,
pub snapshot_path: PathBuf,
pub startup_snapshot: Option<Snapshot>,
pub extensions: Vec<Extension>,
pub compression_cb: Option<Box<dyn Fn(&mut Vec<u8>, &[u8])>>,
pub with_runtime_cb: Option<Box<dyn Fn(&mut JsRuntimeForSnapshot)>>,
}
Fields§
§cargo_manifest_dir: &'static str
§snapshot_path: PathBuf
§startup_snapshot: Option<Snapshot>
§extensions: Vec<Extension>
§compression_cb: Option<Box<dyn Fn(&mut Vec<u8>, &[u8])>>
§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