pub struct TargetInfoChangedEvent { /* private fields */ }Available on crate feature
Target only.Expand description
Issued when some information about a target has changed. This only happens between
targetCreated and targetDestroyed.
Implementations§
Source§impl TargetInfoChangedEvent
impl TargetInfoChangedEvent
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 TargetInfoChangedEvent
impl Clone for TargetInfoChangedEvent
Source§fn clone(&self) -> TargetInfoChangedEvent
fn clone(&self) -> TargetInfoChangedEvent
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 TargetInfoChangedEvent
impl Debug for TargetInfoChangedEvent
Source§impl Deref for TargetInfoChangedEvent
impl Deref for TargetInfoChangedEvent
Source§impl<'de> Deserialize<'de> for TargetInfoChangedEvent
impl<'de> Deserialize<'de> for TargetInfoChangedEvent
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 TargetInfoChangedEvent
impl RefUnwindSafe for TargetInfoChangedEvent
impl Send for TargetInfoChangedEvent
impl Sync for TargetInfoChangedEvent
impl Unpin for TargetInfoChangedEvent
impl UnwindSafe for TargetInfoChangedEvent
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