pub struct Tab {
pub id: TabId,
pub title: String,
pub url: String,
pub active: bool,
pub load_state: TabLoadState,
pub favicon: Option<Vec<u8>>,
pub history: NavigationHistory,
pub dirty: bool,
pub pinned: bool,
pub creation_order: u64,
pub last_active_tick: u64,
pub error_message: Option<String>,
}Expand description
A single browser tab
Fields§
§id: TabIdUnique tab identifier
title: StringTab title (from
url: StringCurrent URL
active: boolWhether this tab is the active (visible) tab
load_state: TabLoadStateLoading state
favicon: Option<Vec<u8>>Favicon data (raw pixel bytes, 16x16 BGRA)
history: NavigationHistoryNavigation history
dirty: boolWhether the tab has been modified (e.g., form data)
pinned: boolWhether the tab is pinned
creation_order: u64Tab creation order (for sorting)
last_active_tick: u64Last active timestamp (tick count)
error_message: Option<String>Optional error message
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tab
impl RefUnwindSafe for Tab
impl Send for Tab
impl Sync for Tab
impl Unpin for Tab
impl UnwindSafe for Tab
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)