pub struct DomainFilterBuilder<H: BuildHasher + Default> { /* private fields */ }Implementations§
Source§impl<H: BuildHasher + Default> DomainFilterBuilder<H>
impl<H: BuildHasher + Default> DomainFilterBuilder<H>
pub fn new() -> Self
pub fn add_allow_domain(&self, domain: Domain)
pub fn add_disallow_domain(&self, domain: Domain)
pub fn add_allow_subdomain(&self, domain: Domain)
pub fn add_disallow_subdomain(&self, domain: Domain)
pub fn add_allow_ip_addr(&self, ip: IpAddr)
pub fn add_disallow_ip_addr(&self, ip: IpAddr)
pub fn add_allow_ip_subnet(&self, net: IpNet)
pub fn add_disallow_ip_subnet(&self, ip: IpNet)
pub fn add_adblock_rule(&self, rule: &str)
pub fn add_allow_regex(&self, re: &str)
pub fn add_disallow_regex(&self, re: &str)
pub fn to_domain_filter(self) -> DomainFilter<H>
Trait Implementations§
Source§impl<H: Default + BuildHasher + Default> Default for DomainFilterBuilder<H>
impl<H: Default + BuildHasher + Default> Default for DomainFilterBuilder<H>
Source§fn default() -> DomainFilterBuilder<H>
fn default() -> DomainFilterBuilder<H>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<H> !Freeze for DomainFilterBuilder<H>
impl<H> !RefUnwindSafe for DomainFilterBuilder<H>
impl<H> Send for DomainFilterBuilder<H>where
H: Send,
impl<H> Sync for DomainFilterBuilder<H>
impl<H> Unpin for DomainFilterBuilder<H>where
H: Unpin,
impl<H> UnwindSafe for DomainFilterBuilder<H>where
H: UnwindSafe,
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