pub struct SignatureMatcher<'a> { /* private fields */ }
Implementations§
Source§impl<'a> SignatureMatcher<'a>
impl<'a> SignatureMatcher<'a>
pub fn new(database: &'a Database) -> Self
pub fn matching_by_tcp_request( &self, signature: &ObservableTcp, ) -> Option<(&'a Label, &'a Signature, f32)>
pub fn matching_by_tcp_response( &self, signature: &ObservableTcp, ) -> Option<(&'a Label, &'a Signature, f32)>
pub fn matching_by_mtu(&self, mtu: &u16) -> Option<(&'a String, &'a u16)>
pub fn matching_by_http_request( &self, signature: &ObservableHttpRequest, ) -> Option<(&'a Label, &'a Signature, f32)>
pub fn matching_by_http_response( &self, signature: &ObservableHttpResponse, ) -> Option<(&'a Label, &'a Signature, f32)>
pub fn matching_by_user_agent( &self, user_agent: String, ) -> Option<(&'a String, &'a Option<String>)>
Auto Trait Implementations§
impl<'a> Freeze for SignatureMatcher<'a>
impl<'a> RefUnwindSafe for SignatureMatcher<'a>
impl<'a> Send for SignatureMatcher<'a>
impl<'a> Sync for SignatureMatcher<'a>
impl<'a> Unpin for SignatureMatcher<'a>
impl<'a> UnwindSafe for SignatureMatcher<'a>
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