pub struct BypassMatcher { /* private fields */ }Expand description
Matches domain names against a bypass list to decide whether to intercept or pass through a TLS connection.
Implementations§
Source§impl BypassMatcher
impl BypassMatcher
Sourcepub fn new(patterns: &[String]) -> Self
pub fn new(patterns: &[String]) -> Self
Creates a new bypass matcher from a list of patterns.
Patterns starting with *. are treated as suffix matches. All other
patterns are exact matches. Matching is case-insensitive.
Sourcepub fn is_bypassed(&self, sni: &str) -> bool
pub fn is_bypassed(&self, sni: &str) -> bool
Returns true if the given SNI domain should bypass TLS interception.
Auto 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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