pub enum RuntimeSurface {
Background,
ContentScript,
Popup,
Sidebar,
}Expand description
Identifies which browser extension surface originated a command.
Used by the core to apply surface-specific policies (e.g., content scripts cannot trigger certain effects, popups get toast notifications).
Variants§
Background
The background service worker (MV3).
ContentScript
A content script injected into a web page.
Popup
The extension popup UI.
Sidebar
The extension sidebar / side panel.
Trait Implementations§
Source§impl Clone for RuntimeSurface
impl Clone for RuntimeSurface
Source§fn clone(&self) -> RuntimeSurface
fn clone(&self) -> RuntimeSurface
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 RuntimeSurface
impl Debug for RuntimeSurface
Source§impl<'de> Deserialize<'de> for RuntimeSurface
impl<'de> Deserialize<'de> for RuntimeSurface
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 RuntimeSurface
impl RefUnwindSafe for RuntimeSurface
impl Send for RuntimeSurface
impl Sync for RuntimeSurface
impl Unpin for RuntimeSurface
impl UnsafeUnpin for RuntimeSurface
impl UnwindSafe for RuntimeSurface
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