Trait NpmProcessStateProvider

Source
pub trait NpmProcessStateProvider:
    Debug
    + MaybeSend
    + MaybeSync {
    // Provided method
    fn get_npm_process_state(&self) -> String { ... }
}

Provided Methods§

Source

fn get_npm_process_state(&self) -> String

Gets a string containing the serialized npm state of the process.

This will be set on the DENO_DONT_USE_INTERNAL_NODE_COMPAT_STATE environment variable when doing a child_process.fork. The implementor can then check this environment variable on startup to repopulate the internal npm state.

Implementors§