pub struct Cdp { /* private fields */ }Implementations§
Source§impl Cdp
impl Cdp
pub fn start_webmcp(&mut self, session: &str) -> Result<String, String>
pub fn webmcp_auto_attach(&mut self, session: &str) -> Result<(), String>
pub fn take_webmcp_children(&mut self) -> Vec<(String, String, String)>
pub fn webmcp_pause_micros(&self) -> &[u128]
pub fn webmcp_document( &mut self, session: &str, frame: &str, ) -> Result<Value, String>
pub fn webmcp_snapshot(&self) -> Vec<Value>
pub fn webmcp_alive(&self, session: &str) -> bool
pub fn webmcp_settled(&self) -> bool
pub fn webmcp_generations(&self) -> Vec<Value>
pub fn stop_webmcp(&mut self, session: &str)
pub fn webmcp_trace_result<T>( &self, session: &str, stage: &str, result: Result<T, String>, ) -> Result<T, String>
pub fn webmcp_trace_stage(&self, session: &str, event: &str, reason: &str)
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 take_notices(&mut self) -> Vec<String>
pub fn unguarded_optional(&self, target_id: &str) -> Vec<String>
pub fn session_blocked(&self, session_id: &str) -> bool
pub fn content_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 settled_refusal( &self, method: &str, params: &Value, session_id: Option<&str>, ) -> Option<String>
pub fn target_protected( &mut self, target_id: &str, frame: bool, ) -> Result<bool, String>
pub fn created_blank(&self, target: &str) -> Option<Value>
pub fn restore_created_blank(&mut self, target: &str, proof: &Value) -> bool
pub fn recovering(&self, target_id: &str) -> bool
pub fn ordinary_redirect_target( &self, source: &str, target: &str, ) -> Result<String, String>
pub fn ordinary_response_body(&self, session: &str, request_id: &str) -> bool
pub fn redact_redirect_carriers(&self, headers: &mut Value, source: &str)
pub fn set_waiter(&mut self, waiter: Option<Waiter>)
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>
Source§impl Cdp
impl Cdp
pub fn dialog_targets(&mut self) -> Result<Vec<String>, String>
pub fn attach_dialog(&mut self, target: &str) -> Result<String, String>
pub fn dialog_ready(&mut self, session: &str) -> Result<Value, String>
pub fn dialog_attached(&self, session: &str, target: &str) -> bool
pub fn dialog_id(&self, session: &str) -> Option<u64>
pub fn verify_dialog(&mut self, session: &str, epoch: u64) -> Result<(), String>
pub fn wait_dialog( &mut self, session: &str, timeout: Duration, ) -> Result<(), String>
Trait Implementations§
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