pub struct TargetCreatedEvent { /* private fields */ }Available on crate feature
Target only.Expand description
Issued when a possible inspection target is created.
Implementations§
Source§impl TargetCreatedEvent
impl TargetCreatedEvent
pub fn new(target_info: TargetInfo) -> Self
pub fn target_info(&self) -> &TargetInfo
Methods from Deref<Target = TargetInfo>§
pub fn target_id(&self) -> &TargetId
pub fn type(&self) -> &str
pub fn title(&self) -> &str
pub fn url(&self) -> &str
Sourcepub fn can_access_opener(&self) -> bool
Available on crate feature experimental only.
pub fn can_access_opener(&self) -> bool
experimental only.Whether the target has access to the originating window.
Sourcepub fn opener_frame_id(&self) -> Option<&FrameId>
Available on crate feature experimental only.
pub fn opener_frame_id(&self) -> Option<&FrameId>
experimental only.Frame id of originating window (is only set if target has an opener).
pub fn browser_context_id(&self) -> Option<&JsonValue>
Available on crate feature
experimental only.Trait Implementations§
Source§impl Clone for TargetCreatedEvent
impl Clone for TargetCreatedEvent
Source§fn clone(&self) -> TargetCreatedEvent
fn clone(&self) -> TargetCreatedEvent
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 TargetCreatedEvent
impl Debug for TargetCreatedEvent
Source§impl Deref for TargetCreatedEvent
impl Deref for TargetCreatedEvent
Source§impl<'de> Deserialize<'de> for TargetCreatedEvent
impl<'de> Deserialize<'de> for TargetCreatedEvent
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
Auto Trait Implementations§
impl Freeze for TargetCreatedEvent
impl RefUnwindSafe for TargetCreatedEvent
impl Send for TargetCreatedEvent
impl Sync for TargetCreatedEvent
impl Unpin for TargetCreatedEvent
impl UnwindSafe for TargetCreatedEvent
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