pub struct FingerprintEngine { /* private fields */ }Expand description
High-performance engine for matching network responses against service signatures.
Implementations§
Source§impl FingerprintEngine
impl FingerprintEngine
Sourcepub fn new(services: Vec<CompiledService>) -> Self
pub fn new(services: Vec<CompiledService>) -> Self
Creates a new engine and builds the port-based index for efficient lookups.
Attempts to identify a service from a banner string.
This uses a two-tier strategy:
- Check services typically found on the specified port.
- If no match, check all other available signatures (handles non-standard ports).
Sourcepub fn get_probes_for_port(&self, port: u16) -> Vec<&ServiceDefinition>
pub fn get_probes_for_port(&self, port: u16) -> Vec<&ServiceDefinition>
Returns the list of service definitions that define probes for the given port.
Sourcepub fn format_identification(id: Identification) -> String
pub fn format_identification(id: Identification) -> String
Formats an identification into a human-readable string.
Auto Trait Implementations§
impl Freeze for FingerprintEngine
impl RefUnwindSafe for FingerprintEngine
impl Send for FingerprintEngine
impl Sync for FingerprintEngine
impl Unpin for FingerprintEngine
impl UnsafeUnpin for FingerprintEngine
impl UnwindSafe for FingerprintEngine
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more