pub struct GetTargetInfoReturn { /* private fields */ }Available on crate features
Target and experimental only.Expand description
Returns information about a target.
Implementations§
Source§impl GetTargetInfoReturn
impl GetTargetInfoReturn
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
pub fn can_access_opener(&self) -> bool
Whether the target has access to the originating window.
Sourcepub fn opener_frame_id(&self) -> Option<&FrameId>
pub fn opener_frame_id(&self) -> Option<&FrameId>
Frame id of originating window (is only set if target has an opener).
pub fn browser_context_id(&self) -> Option<&JsonValue>
Trait Implementations§
Source§impl Clone for GetTargetInfoReturn
impl Clone for GetTargetInfoReturn
Source§fn clone(&self) -> GetTargetInfoReturn
fn clone(&self) -> GetTargetInfoReturn
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 GetTargetInfoReturn
impl Debug for GetTargetInfoReturn
Source§impl Deref for GetTargetInfoReturn
impl Deref for GetTargetInfoReturn
Source§impl<'de> Deserialize<'de> for GetTargetInfoReturn
impl<'de> Deserialize<'de> for GetTargetInfoReturn
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 GetTargetInfoReturn
impl RefUnwindSafe for GetTargetInfoReturn
impl Send for GetTargetInfoReturn
impl Sync for GetTargetInfoReturn
impl Unpin for GetTargetInfoReturn
impl UnwindSafe for GetTargetInfoReturn
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