pub struct InspectorSession { /* private fields */ }Implementations§
Source§impl InspectorSession
impl InspectorSession
pub fn new(application_id: impl Into<String>, page_id: u64) -> Self
pub fn with_session_id( application_id: impl Into<String>, page_id: u64, session_id: impl Into<String>, ) -> Self
pub fn session_id(&self) -> &str
pub fn application_id(&self) -> &str
pub fn page_id(&self) -> u64
pub fn target_id(&self) -> Option<&str>
pub async fn attach<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, wait_for_target: bool, timeout_duration: Duration, ) -> Result<(), WebInspectorError>
pub async fn next_raw_message<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, timeout_duration: Duration, ) -> Result<JsonValue, WebInspectorError>
pub async fn send_command<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, method: &str, params: JsonValue, ) -> Result<u64, WebInspectorError>
pub async fn send_command_and_wait<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, method: &str, params: JsonValue, timeout_duration: Duration, ) -> Result<JsonValue, WebInspectorError>
pub async fn send_bridge_message<S: AsyncRead + AsyncWrite + Unpin>( &mut self, client: &mut WebInspectorClient<S>, message: &JsonValue, ) -> Result<(), WebInspectorError>
pub fn bridge_message( &mut self, message: &JsonValue, ) -> Result<Option<JsonValue>, WebInspectorError>
Trait Implementations§
Source§impl Clone for InspectorSession
impl Clone for InspectorSession
Source§fn clone(&self) -> InspectorSession
fn clone(&self) -> InspectorSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InspectorSession
impl RefUnwindSafe for InspectorSession
impl Send for InspectorSession
impl Sync for InspectorSession
impl Unpin for InspectorSession
impl UnsafeUnpin for InspectorSession
impl UnwindSafe for InspectorSession
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