pub enum CompiledMatcher {
Group(Regex),
GroupId {
ranges: Vec<CompiledRange>,
negate: bool,
},
Type(Regex),
Port {
ranges: Vec<CompiledRange>,
negate: bool,
},
Server(Regex),
Protocol(Regex),
UdpSupport(Regex),
Security(Regex),
Remarks(Regex),
Plain(Regex),
AlwaysTrue,
Invalid,
}Variants§
Group(Regex)
Match against group name (case-insensitive regex find)
GroupId
Match against group ID range
Type(Regex)
Match against proxy type (case-insensitive regex match)
Port
Match against port range
Server(Regex)
Match against server/hostname (case-insensitive regex find)
Protocol(Regex)
Match against protocol (case-insensitive regex find)
UdpSupport(Regex)
Match against UDP support (case-insensitive regex match: “yes”, “no”, “undefined”)
Security(Regex)
Match against security features (case-insensitive regex find: “TLS”, “INSECURE”, “TLS13”, “NONE”)
Remarks(Regex)
Match against remark (case-insensitive regex find)
Plain(Regex)
A plain regex rule (equivalent to !!REMARKS= but without the prefix)
AlwaysTrue
Rule that always matches (e.g., empty rule)
Invalid
Rule that is invalid or cannot be compiled
Trait Implementations§
Source§impl Clone for CompiledMatcher
impl Clone for CompiledMatcher
Source§fn clone(&self) -> CompiledMatcher
fn clone(&self) -> CompiledMatcher
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 CompiledMatcher
impl RefUnwindSafe for CompiledMatcher
impl Send for CompiledMatcher
impl Sync for CompiledMatcher
impl Unpin for CompiledMatcher
impl UnwindSafe for CompiledMatcher
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