pub struct LocalInspectorSession { /* private fields */ }
Expand description
A local inspector session that can be used to send and receive protocol messages directly on the same thread as an isolate.
Implementations§
Source§impl LocalInspectorSession
impl LocalInspectorSession
pub fn new( v8_session_tx: UnboundedSender<String>, v8_session_rx: UnboundedReceiver<InspectorMsg>, ) -> Self
pub fn take_notification_rx(&mut self) -> UnboundedReceiver<Value>
pub async fn post_message<T: Serialize>( &mut self, method: &str, params: Option<T>, ) -> Result<Value, Error>
pub async fn receive_from_v8_session(&mut self)
Auto Trait Implementations§
impl Freeze for LocalInspectorSession
impl !RefUnwindSafe for LocalInspectorSession
impl Send for LocalInspectorSession
impl Sync for LocalInspectorSession
impl Unpin for LocalInspectorSession
impl !UnwindSafe for LocalInspectorSession
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