pub struct EmbeddedV8SessionHandle { /* private fields */ }Implementations§
Source§impl EmbeddedV8SessionHandle
impl EmbeddedV8SessionHandle
pub fn execute( &self, mode: u8, file_path: String, bridge_code: String, post_restore_script: String, userland_code: String, high_resolution_time: bool, user_code: String, wasm_module_bytes: Option<Arc<Vec<u8>>>, ) -> Result<()>
pub fn send_bridge_response( &self, call_id: u64, status: u8, payload: Vec<u8>, ) -> Result<()>
pub fn send_stream_event( &self, event_type: &str, payload: Vec<u8>, ) -> Result<()>
Sourcepub fn set_module_reader(
&self,
reader: Box<dyn GuestModuleReader>,
) -> Result<()>
pub fn set_module_reader( &self, reader: Box<dyn GuestModuleReader>, ) -> Result<()>
Install a direct module-source reader on this session’s thread so module loads read source directly instead of round-tripping the bridge. Routed through the dispatch thread (which owns the session manager).
pub fn terminate(&self) -> Result<()>
pub fn destroy(&self) -> Result<()>
pub fn session_id(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmbeddedV8SessionHandle
impl RefUnwindSafe for EmbeddedV8SessionHandle
impl Send for EmbeddedV8SessionHandle
impl Sync for EmbeddedV8SessionHandle
impl Unpin for EmbeddedV8SessionHandle
impl UnsafeUnpin for EmbeddedV8SessionHandle
impl UnwindSafe for EmbeddedV8SessionHandle
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