pub struct BypassMatcher { /* private fields */ }Expand description
Matcher for hosts that should bypass the external proxy.
Supports exact hostname match and *. wildcard suffix match,
both case-insensitive. Uses the same *-prefix parsing pattern
as HostFilter::new().
Implementations§
Source§impl BypassMatcher
impl BypassMatcher
Sourcepub fn new(hosts: &[String]) -> Self
pub fn new(hosts: &[String]) -> Self
Create a new bypass matcher from a list of host patterns.
Entries starting with *. are wildcard patterns matching any subdomain.
All other entries are exact matches. Matching is case-insensitive.
Only the *.domain form is accepted for wildcards. Bare * and
patterns like *corp (without the dot) are treated as exact hostnames
to prevent accidental over-broad matching.
Trait Implementations§
Source§impl Clone for BypassMatcher
impl Clone for BypassMatcher
Source§fn clone(&self) -> BypassMatcher
fn clone(&self) -> BypassMatcher
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 moreAuto Trait Implementations§
impl Freeze for BypassMatcher
impl RefUnwindSafe for BypassMatcher
impl Send for BypassMatcher
impl Sync for BypassMatcher
impl Unpin for BypassMatcher
impl UnsafeUnpin for BypassMatcher
impl UnwindSafe for BypassMatcher
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