Struct cdp::target::ReceivedMessageFromTargetEvent
[−]
[src]
pub struct ReceivedMessageFromTargetEvent<'a> { pub session_id: SessionId<'a>, pub message: Cow<'a, str>, pub target_id: Option<TargetId<'a>>, }
[Experimental] Notifies about a new protocol message received from the session (as reported in attachedToTarget
event).
Event Target.receivedMessageFromTarget
Domain Module: cdp::target
Event Struct: cdp::target::ReceivedMessageFromTargetEvent
Fields
session_id: SessionId<'a>
Identifier of a session which sends a message.
message: Cow<'a, str>
target_id: Option<TargetId<'a>>
Deprecated
Deprecated.
Trait Implementations
impl<'a> Clone for ReceivedMessageFromTargetEvent<'a>
[src]
fn clone(&self) -> ReceivedMessageFromTargetEvent<'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 ReceivedMessageFromTargetEvent<'a>
[src]
impl<'a> PartialEq for ReceivedMessageFromTargetEvent<'a>
[src]
fn eq(&self, __arg_0: &ReceivedMessageFromTargetEvent<'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: &ReceivedMessageFromTargetEvent<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpEvent for ReceivedMessageFromTargetEvent<'a>
[src]
const EVENT_NAME: &'static str
EVENT_NAME: &'static str = "Target.receivedMessageFromTarget"
impl<'a> SerializeCdpEvent for ReceivedMessageFromTargetEvent<'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 ReceivedMessageFromTargetEvent<'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>,