pub enum TabOpenHint {
Unknown,
CurrentTab,
NewForegroundTab,
NewBackgroundTab,
NewWindow,
Popup,
}Expand description
Chromium-facing hint describing how opener requested a tab.
Variants§
Implementations§
Source§impl TabOpenHint
impl TabOpenHint
Sourcepub const fn to_browsing_context_open_hint(
self,
) -> Option<ChromeBrowsingContextOpenHint>
pub const fn to_browsing_context_open_hint( self, ) -> Option<ChromeBrowsingContextOpenHint>
Convert into generic-layer hint only for non-window-open cases.
Trait Implementations§
Source§impl Clone for TabOpenHint
impl Clone for TabOpenHint
Source§fn clone(&self) -> TabOpenHint
fn clone(&self) -> TabOpenHint
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 TabOpenHint
impl Debug for TabOpenHint
Source§impl From<ChromeBrowsingContextOpenHint> for TabOpenHint
impl From<ChromeBrowsingContextOpenHint> for TabOpenHint
Source§fn from(value: ChromeBrowsingContextOpenHint) -> Self
fn from(value: ChromeBrowsingContextOpenHint) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TabOpenHint
impl PartialEq for TabOpenHint
impl Copy for TabOpenHint
impl Eq for TabOpenHint
impl StructuralPartialEq for TabOpenHint
Auto Trait Implementations§
impl Freeze for TabOpenHint
impl RefUnwindSafe for TabOpenHint
impl Send for TabOpenHint
impl Sync for TabOpenHint
impl Unpin for TabOpenHint
impl UnsafeUnpin for TabOpenHint
impl UnwindSafe for TabOpenHint
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