pub struct CdpEvent {
pub method: String,
pub params: Value,
pub session_id: Option<String>,
}Expand description
A CDP event delivered to subscribers of CdpClient::subscribe_events.
Fields§
§method: StringDomain.eventName, e.g. Network.responseReceived.
params: ValueEvent-specific payload. Decode with serde_json::from_value.
session_id: Option<String>Some(...) for events scoped to an attached target (the typical
case in flatten mode); None for browser-wide events.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CdpEvent
impl RefUnwindSafe for CdpEvent
impl Send for CdpEvent
impl Sync for CdpEvent
impl Unpin for CdpEvent
impl UnsafeUnpin for CdpEvent
impl UnwindSafe for CdpEvent
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