pub enum BrowserTabsEvent {
Activated(String),
Closed(String),
NewRequested,
}Expand description
Events emitted by BrowserTabs for a frame.
Drain via BrowserTabs::take_events; the queue is cleared each call.
Variants§
Activated(String)
The user changed the active tab. Carries the id of the newly-active tab.
Closed(String)
The user clicked the close (×) button. The widget has already removed the tab from its list when this fires; the caller can free any associated state.
NewRequested
The user clicked the trailing “+” button. The widget does NOT add a
tab automatically; the caller decides label / icon / id and calls
BrowserTabs::add_tab.
Trait Implementations§
Source§impl Clone for BrowserTabsEvent
impl Clone for BrowserTabsEvent
Source§fn clone(&self) -> BrowserTabsEvent
fn clone(&self) -> BrowserTabsEvent
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 BrowserTabsEvent
impl Debug for BrowserTabsEvent
Source§impl PartialEq for BrowserTabsEvent
impl PartialEq for BrowserTabsEvent
impl Eq for BrowserTabsEvent
impl StructuralPartialEq for BrowserTabsEvent
Auto Trait Implementations§
impl Freeze for BrowserTabsEvent
impl RefUnwindSafe for BrowserTabsEvent
impl Send for BrowserTabsEvent
impl Sync for BrowserTabsEvent
impl Unpin for BrowserTabsEvent
impl UnsafeUnpin for BrowserTabsEvent
impl UnwindSafe for BrowserTabsEvent
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