pub struct EventConsoleApiCalled {
pub type: ConsoleApiCalledType,
pub args: Vec<RemoteObject>,
pub execution_context_id: ExecutionContextId,
pub timestamp: Timestamp,
pub stack_trace: Option<StackTrace>,
pub context: Option<String>,
}Expand description
Issued when console API was called. consoleAPICalled
Fields§
§type: ConsoleApiCalledTypeType of the call.
args: Vec<RemoteObject>Call arguments.
execution_context_id: ExecutionContextIdIdentifier of the context where the call was made.
timestamp: TimestampCall timestamp.
stack_trace: Option<StackTrace>Stack trace captured when the call was made. The async stack chain is automatically reported for
the following call types: assert, error, trace, warning. For other types the async call
chain can be retrieved using Debugger.getStackTrace and stackTrace.parentId field.
context: Option<String>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.
Implementations§
Source§impl EventConsoleApiCalled
impl EventConsoleApiCalled
pub const IDENTIFIER: &'static str = "Runtime.consoleAPICalled"
Trait Implementations§
Source§impl Clone for EventConsoleApiCalled
impl Clone for EventConsoleApiCalled
Source§fn clone(&self) -> EventConsoleApiCalled
fn clone(&self) -> EventConsoleApiCalled
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventConsoleApiCalled
impl Debug for EventConsoleApiCalled
Source§impl<'de> Deserialize<'de> for EventConsoleApiCalled
impl<'de> Deserialize<'de> for EventConsoleApiCalled
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventConsoleApiCalled, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventConsoleApiCalled, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<EventConsoleApiCalled> for CdpEvent
impl From<EventConsoleApiCalled> for CdpEvent
Source§fn from(el: EventConsoleApiCalled) -> CdpEvent
fn from(el: EventConsoleApiCalled) -> CdpEvent
Converts to this type from the input type.
Source§impl IntoEventKind for EventConsoleApiCalled
impl IntoEventKind for EventConsoleApiCalled
Source§fn event_kind() -> EventKindwhere
EventConsoleApiCalled: Sized + 'static,
fn event_kind() -> EventKindwhere
EventConsoleApiCalled: Sized + 'static,
What kind of event this type is
Source§impl Method for EventConsoleApiCalled
impl Method for EventConsoleApiCalled
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNodeSource§impl MethodType for EventConsoleApiCalled
impl MethodType for EventConsoleApiCalled
Source§impl PartialEq for EventConsoleApiCalled
impl PartialEq for EventConsoleApiCalled
Source§impl Serialize for EventConsoleApiCalled
impl Serialize for EventConsoleApiCalled
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<CdpEvent> for EventConsoleApiCalled
impl TryFrom<CdpEvent> for EventConsoleApiCalled
impl StructuralPartialEq for EventConsoleApiCalled
Auto Trait Implementations§
impl Freeze for EventConsoleApiCalled
impl RefUnwindSafe for EventConsoleApiCalled
impl Send for EventConsoleApiCalled
impl Sync for EventConsoleApiCalled
impl Unpin for EventConsoleApiCalled
impl UnwindSafe for EventConsoleApiCalled
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more