pub enum BrowserEvent {
WindowOpened {
window_id: u32,
title: String,
},
WindowClosed {
window_id: u32,
},
TabActivated {
window_id: u32,
tab_id: u32,
previous_tab_id: Option<u32>,
},
TabOpened {
tab_id: u32,
window_id: u32,
index: u32,
url: String,
title: String,
},
TabClosed {
tab_id: u32,
window_id: u32,
is_window_closing: bool,
},
TabNavigated {
tab_id: u32,
window_id: u32,
url: String,
},
TabTitleChanged {
tab_id: u32,
window_id: u32,
title: String,
},
TabStatusChanged {
tab_id: u32,
window_id: u32,
status: TabStatus,
},
}Expand description
An event emitted by the browser extension and broadcast to all event-stream subscribers.
Variants§
WindowOpened
A new browser window was opened.
Fields
WindowClosed
A browser window was closed.
TabActivated
The active tab in a window changed.
Fields
TabOpened
A new tab was opened.
Fields
TabClosed
A tab was closed.
Fields
A tab started loading a new URL.
TabTitleChanged
A tab’s title changed.
Fields
TabStatusChanged
A tab’s loading status changed (e.g. from loading to complete).
Trait Implementations§
Source§impl Clone for BrowserEvent
impl Clone for BrowserEvent
Source§fn clone(&self) -> BrowserEvent
fn clone(&self) -> BrowserEvent
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 BrowserEvent
impl Debug for BrowserEvent
Source§impl<'de> Deserialize<'de> for BrowserEvent
impl<'de> Deserialize<'de> for BrowserEvent
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
Source§impl PartialEq for BrowserEvent
impl PartialEq for BrowserEvent
Source§impl Serialize for BrowserEvent
impl Serialize for BrowserEvent
impl Eq for BrowserEvent
impl StructuralPartialEq for BrowserEvent
Auto Trait Implementations§
impl Freeze for BrowserEvent
impl RefUnwindSafe for BrowserEvent
impl Send for BrowserEvent
impl Sync for BrowserEvent
impl Unpin for BrowserEvent
impl UnsafeUnpin for BrowserEvent
impl UnwindSafe for BrowserEvent
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