pub struct Interception<'a> { /* private fields */ }Implementations§
Source§impl<'a> Interception<'a>
impl<'a> Interception<'a>
pub fn attach( cdp: &'a mut Cdp, target_id: &str, patterns: &[Pattern], ) -> Result<Self, String>
pub fn on_session( cdp: &'a mut Cdp, target_id: &str, session_id: &str, patterns: &[Pattern], ) -> Result<Self, String>
pub fn session_id(&self) -> &str
pub fn next(&mut self, timeout: Duration) -> Result<Option<Paused>, String>
pub fn decide( &mut self, paused: &Paused, decision: &Decision, ) -> Result<(), String>
pub fn response_body(&mut self, paused: &Paused) -> Result<Vec<u8>, String>
pub fn finish(self)
Methods from Deref<Target = 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)
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>
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>
pub fn bring_forward(&mut self, session: &str) -> Result<Front, String>
pub fn restore_front(&mut self, front: Front) -> Result<(), String>
Trait Implementations§
Source§impl Deref for Interception<'_>
impl Deref for Interception<'_>
Source§impl DerefMut for Interception<'_>
impl DerefMut for Interception<'_>
Source§impl Drop for Interception<'_>
impl Drop for Interception<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Interception<'a>
impl<'a> !Send for Interception<'a>
impl<'a> !Sync for Interception<'a>
impl<'a> !UnwindSafe for Interception<'a>
impl<'a> Freeze for Interception<'a>
impl<'a> Unpin for Interception<'a>
impl<'a> UnsafeUnpin for Interception<'a>
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