pub struct Cdp { /* private fields */ }Implementations§
Source§impl Cdp
impl Cdp
pub fn connect(url: &str) -> Result<Self, String>
pub fn from_transport(ws: Box<dyn Transport>) -> Self
pub fn events(&self) -> &[Value]
pub fn guard(&self) -> &Protected
pub fn protect_origins(&mut self, extra_origins: &[&str])
pub fn session_blocked(&self, session_id: &str) -> bool
pub fn is_protected_target(&self, target_id: &str) -> bool
pub fn set_decider(&mut self, session_id: &str, decider: Option<Decider>)
pub fn has_decider(&self, session_id: &str) -> bool
pub fn take_fetch_errors(&mut self) -> Vec<String>
pub fn call( &mut self, method: &str, params: Value, session_id: Option<&str>, ) -> Result<Value, String>
pub fn call_for( &mut self, method: &str, params: Value, session_id: Option<&str>, timeout: Duration, ) -> Result<Value, String>
pub fn notify( &mut self, method: &str, params: Value, session_id: Option<&str>, ) -> Result<(), String>
pub fn target_protected( &mut self, target_id: &str, frame: bool, ) -> Result<bool, String>
pub fn pump(&mut self, deadline: Instant) -> Result<bool, String>
pub fn next_paused( &mut self, session_id: Option<&str>, timeout: Duration, ) -> Result<Option<Paused>, String>
pub fn wait_event( &mut self, from: usize, timeout: Duration, matches: impl FnMut(&Value) -> bool, ) -> Result<Option<Value>, String>
pub fn wait_load(&mut self, session_id: &str) -> Result<(), String>
pub fn wait_load_since( &mut self, session_id: &str, from: usize, ) -> Result<(), String>
Auto Trait Implementations§
impl !RefUnwindSafe for Cdp
impl !Send for Cdp
impl !Sync for Cdp
impl !UnwindSafe for Cdp
impl Freeze for Cdp
impl Unpin for Cdp
impl UnsafeUnpin for Cdp
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