pub struct EmbeddedV8Runtime { /* private fields */ }Implementations§
Source§impl EmbeddedV8Runtime
impl EmbeddedV8Runtime
pub fn new( max_concurrency: Option<usize>, runtime: RuntimeContext, ) -> Result<Self>
pub fn is_alive(&self) -> bool
pub fn snapshot_ready(&self, bridge_code: &str, userland_code: &str) -> bool
pub fn pre_warm_workers( &self, bridge_code: String, userland_code: String, heap_limit_mb: Option<u32>, count: usize, )
pub fn register_session( &self, session_id: &str, ) -> Result<RuntimeEventOutputReceiver>
pub fn register_session_with_output_registration( &self, session_id: &str, ) -> Result<(RuntimeEventOutputReceiver, EmbeddedV8SessionOutputRegistration)>
pub fn register_session_with_runtime( &self, session_id: &str, runtime: &RuntimeContext, ) -> Result<(RuntimeEventOutputReceiver, EmbeddedV8SessionOutputRegistration)>
pub fn unregister_session(&self, session_id: &str)
pub fn destroy_session_if_output_current( &self, registration: &EmbeddedV8SessionOutputRegistration, ) -> Result<bool>
pub fn session_handle( self: &Arc<Self>, session_id: String, ) -> EmbeddedV8SessionHandle
pub fn dispatch(&self, command: RuntimeCommand) -> Result<()>
Sourcepub fn dispatch_create_session_with_runtime(
&self,
command: RuntimeCommand,
session_runtime: RuntimeContext,
ready_batch_handle_limit: usize,
bridge_call_timeout: Duration,
) -> Result<()>
pub fn dispatch_create_session_with_runtime( &self, command: RuntimeCommand, session_runtime: RuntimeContext, ready_batch_handle_limit: usize, bridge_call_timeout: Duration, ) -> Result<()>
Dispatch an in-process create-session command with the VM-scoped runtime that owns guest work. Serialized IPC commands cannot carry this trusted host capability and continue to use the manager’s process context.
pub fn session_count(&self) -> usize
pub fn active_slot_count(&self) -> usize
Trait Implementations§
Source§impl Drop for EmbeddedV8Runtime
impl Drop for EmbeddedV8Runtime
Auto Trait Implementations§
impl !Freeze for EmbeddedV8Runtime
impl RefUnwindSafe for EmbeddedV8Runtime
impl Send for EmbeddedV8Runtime
impl Sync for EmbeddedV8Runtime
impl Unpin for EmbeddedV8Runtime
impl UnsafeUnpin for EmbeddedV8Runtime
impl UnwindSafe for EmbeddedV8Runtime
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