pub struct ProtocolAnalyzer { /* private fields */ }Implementations§
Source§impl ProtocolAnalyzer
impl ProtocolAnalyzer
pub fn new() -> Self
Sourcepub fn with_timeout(probe_timeout: Duration) -> Self
pub fn with_timeout(probe_timeout: Duration) -> Self
Create a new analyzer with a custom probe timeout
Sourcepub async fn detect_service(
&self,
stream: &mut TcpStream,
protocol: Protocol,
) -> Result<Option<String>, NtraceError>
pub async fn detect_service( &self, stream: &mut TcpStream, protocol: Protocol, ) -> Result<Option<String>, NtraceError>
Detects the service running on the port via banner grabbing and probing.
Sourcepub async fn analyze_protocol(
&self,
stream: &TcpStream,
protocol: Protocol,
) -> Result<Option<String>, NtraceError>
pub async fn analyze_protocol( &self, stream: &TcpStream, protocol: Protocol, ) -> Result<Option<String>, NtraceError>
Analyzes protocol details to determine version and features
Trait Implementations§
Source§impl Clone for ProtocolAnalyzer
impl Clone for ProtocolAnalyzer
Source§fn clone(&self) -> ProtocolAnalyzer
fn clone(&self) -> ProtocolAnalyzer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProtocolAnalyzer
impl RefUnwindSafe for ProtocolAnalyzer
impl Send for ProtocolAnalyzer
impl Sync for ProtocolAnalyzer
impl Unpin for ProtocolAnalyzer
impl UnsafeUnpin for ProtocolAnalyzer
impl UnwindSafe for ProtocolAnalyzer
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