pub struct TabInfo {
pub active: bool,
pub discarded: bool,
pub worth: bool,
pub last_active_ms: u64,
}Expand description
判定に使うタブ 1 つの情報。
Fields§
§active: bool今表示しているタブ。
discarded: bool既に破棄している。
worth: bool捨てる価値がある(ネットワークから読んだページ。内蔵のホーム・about:・新しいタブは軽いので捨てない)。
last_active_ms: u64最後にアクティブだった時刻(ms。大きいほど新しい)。
Trait Implementations§
impl Copy for TabInfo
impl Eq for TabInfo
impl StructuralPartialEq for TabInfo
Auto Trait Implementations§
impl Freeze for TabInfo
impl RefUnwindSafe for TabInfo
impl Send for TabInfo
impl Sync for TabInfo
impl Unpin for TabInfo
impl UnsafeUnpin for TabInfo
impl UnwindSafe for TabInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.