Struct cdp::runtime::ConsoleApiCalledEvent
[−]
[src]
pub struct ConsoleApiCalledEvent<'a> { pub ty: ConsoleApiCalledEventType, pub args: Vec<RemoteObject<'a>>, pub execution_context_id: ExecutionContextId, pub timestamp: Timestamp, pub stack_trace: Option<StackTrace<'a>>, pub context: Option<Cow<'a, str>>, }
Issued when console API was called.
Event Runtime.consoleAPICalled
Domain Module: cdp::runtime
Event Struct: cdp::runtime::ConsoleApiCalledEvent
Fields
ty: ConsoleApiCalledEventType
Type of the call.
args: Vec<RemoteObject<'a>>
Call arguments.
execution_context_id: ExecutionContextId
Identifier of the context where the call was made.
timestamp: Timestamp
Call timestamp.
stack_trace: Option<StackTrace<'a>>
Stack trace captured when the call was made.
context: Option<Cow<'a, str>>
[Experimental] Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context.
Trait Implementations
impl<'a> Clone for ConsoleApiCalledEvent<'a>
[src]
fn clone(&self) -> ConsoleApiCalledEvent<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for ConsoleApiCalledEvent<'a>
[src]
impl<'a> PartialEq for ConsoleApiCalledEvent<'a>
[src]
fn eq(&self, __arg_0: &ConsoleApiCalledEvent<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ConsoleApiCalledEvent<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpEvent for ConsoleApiCalledEvent<'a>
[src]
const EVENT_NAME: &'static str
EVENT_NAME: &'static str = "Runtime.consoleAPICalled"
impl<'a> SerializeCdpEvent for ConsoleApiCalledEvent<'a>
[src]
fn event_name(&self) -> &str
[src]
fn serialize_event_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de, 'a> DeserializeCdpEvent<'de> for ConsoleApiCalledEvent<'a>
[src]
fn deserialize_event<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,