Struct adblock::regex_manager::RegexManagerDiscardPolicy
source · pub struct RegexManagerDiscardPolicy {
pub cleanup_interval: Duration,
pub discard_unused_time: Duration,
}
Expand description
Used for customization of regex discarding behavior in the RegexManager
.
Fields§
§cleanup_interval: Duration
The RegexManager
will check for and cleanup unused filters on this interval.
discard_unused_time: Duration
The RegexManager
will discard a regex if it hasn’t been used for this much time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RegexManagerDiscardPolicy
impl RefUnwindSafe for RegexManagerDiscardPolicy
impl Send for RegexManagerDiscardPolicy
impl Sync for RegexManagerDiscardPolicy
impl Unpin for RegexManagerDiscardPolicy
impl UnwindSafe for RegexManagerDiscardPolicy
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