pub struct SelectorCacheEntry {
pub selector: String,
pub success_count: u32,
pub failure_count: u32,
pub last_used_ms: u64,
pub domain: Option<String>,
}Expand description
A single entry in the selector cache.
Fields§
§selector: StringThe CSS selector that matched.
success_count: u32Number of successful uses.
failure_count: u32Number of failures (before invalidation).
last_used_ms: u64Timestamp of last successful use (unix millis).
domain: Option<String>Domain where this selector was discovered.
Implementations§
Trait Implementations§
Source§impl Clone for SelectorCacheEntry
impl Clone for SelectorCacheEntry
Source§fn clone(&self) -> SelectorCacheEntry
fn clone(&self) -> SelectorCacheEntry
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 SelectorCacheEntry
impl Debug for SelectorCacheEntry
Source§impl<'de> Deserialize<'de> for SelectorCacheEntry
impl<'de> Deserialize<'de> for SelectorCacheEntry
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
Auto Trait Implementations§
impl Freeze for SelectorCacheEntry
impl RefUnwindSafe for SelectorCacheEntry
impl Send for SelectorCacheEntry
impl Sync for SelectorCacheEntry
impl Unpin for SelectorCacheEntry
impl UnwindSafe for SelectorCacheEntry
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