pub struct TargetInfo { /* private fields */ }Available on crate feature
Target only.Implementations§
Source§impl TargetInfo
impl TargetInfo
pub fn builder() -> TargetInfoBuilder
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 TargetInfo
impl Clone for TargetInfo
Source§fn clone(&self) -> TargetInfo
fn clone(&self) -> TargetInfo
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 TargetInfo
impl Debug for TargetInfo
Source§impl<'de> Deserialize<'de> for TargetInfo
impl<'de> Deserialize<'de> for TargetInfo
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 TargetInfo
impl RefUnwindSafe for TargetInfo
impl Send for TargetInfo
impl Sync for TargetInfo
impl Unpin for TargetInfo
impl UnwindSafe for TargetInfo
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