pub struct PopupId(pub u64);Expand description
Chrome-facing stable identifier for an extension popup.
This is the current Chromium-side carrier for generic
TransientBrowsingContextId values.
Tuple Fields§
§0: u64Implementations§
Source§impl PopupId
impl PopupId
Sourcepub const fn from_transient_browsing_context_id(
id: TransientBrowsingContextId,
) -> Self
pub const fn from_transient_browsing_context_id( id: TransientBrowsingContextId, ) -> Self
Convert from generic-layer transient browsing context ID.
Sourcepub const fn to_transient_browsing_context_id(
self,
) -> TransientBrowsingContextId
pub const fn to_transient_browsing_context_id( self, ) -> TransientBrowsingContextId
Convert into generic-layer transient browsing context ID.
Trait Implementations§
Source§impl From<PopupId> for TransientBrowsingContextId
impl From<PopupId> for TransientBrowsingContextId
Source§impl From<TransientBrowsingContextId> for PopupId
impl From<TransientBrowsingContextId> for PopupId
Source§fn from(value: TransientBrowsingContextId) -> Self
fn from(value: TransientBrowsingContextId) -> Self
Converts to this type from the input type.
Source§impl Ord for PopupId
impl Ord for PopupId
Source§impl PartialOrd for PopupId
impl PartialOrd for PopupId
impl Copy for PopupId
impl Eq for PopupId
impl StructuralPartialEq for PopupId
Auto Trait Implementations§
impl Freeze for PopupId
impl RefUnwindSafe for PopupId
impl Send for PopupId
impl Sync for PopupId
impl Unpin for PopupId
impl UnsafeUnpin for PopupId
impl UnwindSafe for PopupId
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