struct TabSlot {
title: String,
engine: Option<WebEngine>,
discarded: bool,
url: String,
last_active_ms: u64,
}Expand description
タブごとのページ状態を保存する
各タブのスロット。タブごとに独立した WebEngine を保持する(完全分離方式)。
アクティブタブの engine は WebBrowser::engine(ライブ)へ「チェックアウト」され、
このスロットの engine は None になる。非アクティブタブは描画済み DOM・スクロール・
フォーム入力をそのまま保持するため、タブ切替でネットワーク再取得は発生しない。
Fields§
§title: String§engine: Option<WebEngine>§discarded: bool【2026-11-19】破棄済み(メモリ不足で engine を捨て、題名と URL だけ残した状態)。
切り替えたときに url を読み直す(WebBrowser::activate)。
url: String破棄したときのページの URL(破棄済みのときだけ意味がある)。
last_active_ms: u64最後にアクティブだった時刻(ms)。破棄する順(一番長く使われていないもの)の判定に使う。
Auto Trait Implementations§
impl !RefUnwindSafe for TabSlot
impl !Send for TabSlot
impl !Sync for TabSlot
impl !UnwindSafe for TabSlot
impl Freeze for TabSlot
impl Unpin for TabSlot
impl UnsafeUnpin for TabSlot
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