pub enum TargetEvents {
AttachedToTarget(AttachedToTarget),
DetachedFromTarget(DetachedFromTarget),
ReceivedMessageFromTarget(ReceivedMessageFromTarget),
TargetCreated(TargetCreated),
TargetDestroyed(TargetDestroyed),
TargetCrashed(TargetCrashed),
TargetInfoChanged(TargetInfoChanged),
}Variants§
AttachedToTarget(AttachedToTarget)
DetachedFromTarget(DetachedFromTarget)
ReceivedMessageFromTarget(ReceivedMessageFromTarget)
TargetCreated(TargetCreated)
TargetDestroyed(TargetDestroyed)
TargetCrashed(TargetCrashed)
TargetInfoChanged(TargetInfoChanged)
Implementations§
Source§impl TargetEvents
impl TargetEvents
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for TargetEvents
impl Clone for TargetEvents
Source§fn clone(&self) -> TargetEvents
fn clone(&self) -> TargetEvents
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 TargetEvents
impl Debug for TargetEvents
Source§impl<'de> Deserialize<'de> for TargetEvents
impl<'de> Deserialize<'de> for TargetEvents
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AttachedToTarget> for TargetEvents
impl From<AttachedToTarget> for TargetEvents
Source§fn from(v: AttachedToTarget) -> Self
fn from(v: AttachedToTarget) -> Self
Converts to this type from the input type.
Source§impl From<DetachedFromTarget> for TargetEvents
impl From<DetachedFromTarget> for TargetEvents
Source§fn from(v: DetachedFromTarget) -> Self
fn from(v: DetachedFromTarget) -> Self
Converts to this type from the input type.
Source§impl From<ReceivedMessageFromTarget> for TargetEvents
impl From<ReceivedMessageFromTarget> for TargetEvents
Source§fn from(v: ReceivedMessageFromTarget) -> Self
fn from(v: ReceivedMessageFromTarget) -> Self
Converts to this type from the input type.
Source§impl From<TargetCrashed> for TargetEvents
impl From<TargetCrashed> for TargetEvents
Source§fn from(v: TargetCrashed) -> Self
fn from(v: TargetCrashed) -> Self
Converts to this type from the input type.
Source§impl From<TargetCreated> for TargetEvents
impl From<TargetCreated> for TargetEvents
Source§fn from(v: TargetCreated) -> Self
fn from(v: TargetCreated) -> Self
Converts to this type from the input type.
Source§impl From<TargetDestroyed> for TargetEvents
impl From<TargetDestroyed> for TargetEvents
Source§fn from(v: TargetDestroyed) -> Self
fn from(v: TargetDestroyed) -> Self
Converts to this type from the input type.
Source§impl From<TargetEvents> for BrowserProtocolEvents
impl From<TargetEvents> for BrowserProtocolEvents
Source§fn from(v: TargetEvents) -> Self
fn from(v: TargetEvents) -> Self
Converts to this type from the input type.
Source§impl From<TargetEvents> for Event
impl From<TargetEvents> for Event
Source§fn from(v: TargetEvents) -> Self
fn from(v: TargetEvents) -> Self
Converts to this type from the input type.
Source§impl From<TargetInfoChanged> for TargetEvents
impl From<TargetInfoChanged> for TargetEvents
Source§fn from(v: TargetInfoChanged) -> Self
fn from(v: TargetInfoChanged) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TargetEvents
impl PartialEq for TargetEvents
Source§impl Serialize for TargetEvents
impl Serialize for TargetEvents
Source§impl TryFrom<BrowserProtocolEvents> for TargetEvents
impl TryFrom<BrowserProtocolEvents> for TargetEvents
Source§type Error = BrowserProtocolEvents
type Error = BrowserProtocolEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolEvents,
) -> Result<Self, <TargetEvents as TryFrom<BrowserProtocolEvents>>::Error>
fn try_from( e: BrowserProtocolEvents, ) -> Result<Self, <TargetEvents as TryFrom<BrowserProtocolEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<Event> for TargetEvents
impl TryFrom<Event> for TargetEvents
Source§impl TryFrom<TargetEvents> for AttachedToTarget
impl TryFrom<TargetEvents> for AttachedToTarget
Source§type Error = TargetEvents
type Error = TargetEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetEvents,
) -> Result<Self, <AttachedToTarget as TryFrom<TargetEvents>>::Error>
fn try_from( e: TargetEvents, ) -> Result<Self, <AttachedToTarget as TryFrom<TargetEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetEvents> for DetachedFromTarget
impl TryFrom<TargetEvents> for DetachedFromTarget
Source§type Error = TargetEvents
type Error = TargetEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetEvents,
) -> Result<Self, <DetachedFromTarget as TryFrom<TargetEvents>>::Error>
fn try_from( e: TargetEvents, ) -> Result<Self, <DetachedFromTarget as TryFrom<TargetEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetEvents> for ReceivedMessageFromTarget
impl TryFrom<TargetEvents> for ReceivedMessageFromTarget
Source§type Error = TargetEvents
type Error = TargetEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetEvents,
) -> Result<Self, <ReceivedMessageFromTarget as TryFrom<TargetEvents>>::Error>
fn try_from( e: TargetEvents, ) -> Result<Self, <ReceivedMessageFromTarget as TryFrom<TargetEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetEvents> for TargetCrashed
impl TryFrom<TargetEvents> for TargetCrashed
Source§type Error = TargetEvents
type Error = TargetEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetEvents,
) -> Result<Self, <TargetCrashed as TryFrom<TargetEvents>>::Error>
fn try_from( e: TargetEvents, ) -> Result<Self, <TargetCrashed as TryFrom<TargetEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetEvents> for TargetCreated
impl TryFrom<TargetEvents> for TargetCreated
Source§type Error = TargetEvents
type Error = TargetEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetEvents,
) -> Result<Self, <TargetCreated as TryFrom<TargetEvents>>::Error>
fn try_from( e: TargetEvents, ) -> Result<Self, <TargetCreated as TryFrom<TargetEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetEvents> for TargetDestroyed
impl TryFrom<TargetEvents> for TargetDestroyed
Source§type Error = TargetEvents
type Error = TargetEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetEvents,
) -> Result<Self, <TargetDestroyed as TryFrom<TargetEvents>>::Error>
fn try_from( e: TargetEvents, ) -> Result<Self, <TargetDestroyed as TryFrom<TargetEvents>>::Error>
Performs the conversion.
Source§impl TryFrom<TargetEvents> for TargetInfoChanged
impl TryFrom<TargetEvents> for TargetInfoChanged
Source§type Error = TargetEvents
type Error = TargetEvents
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetEvents,
) -> Result<Self, <TargetInfoChanged as TryFrom<TargetEvents>>::Error>
fn try_from( e: TargetEvents, ) -> Result<Self, <TargetInfoChanged as TryFrom<TargetEvents>>::Error>
Performs the conversion.
impl StructuralPartialEq for TargetEvents
Auto Trait Implementations§
impl Freeze for TargetEvents
impl RefUnwindSafe for TargetEvents
impl Send for TargetEvents
impl Sync for TargetEvents
impl Unpin for TargetEvents
impl UnsafeUnpin for TargetEvents
impl UnwindSafe for TargetEvents
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