pub struct CpuMatcher { /* private fields */ }Expand description
CPU-based banner pattern matcher.
Implementations§
Source§impl CpuMatcher
impl CpuMatcher
Sourcepub fn new(rules: Vec<ServiceRule>) -> Self
pub fn new(rules: Vec<ServiceRule>) -> Self
Create a new matcher with the given rules.
Match a banner against all rules.
Returns all matching rules sorted by priority (highest first).
Sourcepub fn match_batch(&self, banners: &[&str]) -> Vec<Vec<ServiceMatch>>
pub fn match_batch(&self, banners: &[&str]) -> Vec<Vec<ServiceMatch>>
Batch-match multiple banners. Returns one result set per banner.
Auto Trait Implementations§
impl Freeze for CpuMatcher
impl RefUnwindSafe for CpuMatcher
impl Send for CpuMatcher
impl Sync for CpuMatcher
impl Unpin for CpuMatcher
impl UnsafeUnpin for CpuMatcher
impl UnwindSafe for CpuMatcher
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