pub struct EmbeddedV8Runtime { /* private fields */ }Implementations§
Source§impl EmbeddedV8Runtime
impl EmbeddedV8Runtime
pub fn new(max_concurrency: Option<usize>) -> 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<Receiver<RuntimeEvent>>
pub fn register_session_with_output_registration( &self, session_id: &str, ) -> Result<(Receiver<RuntimeEvent>, 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<()>
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