pub enum DetectResult {
Match {
confidence: u8,
},
NeedMore {
minimum: usize,
},
NoMatch,
}Expand description
Result of a protocol detection attempt.
Variants§
Match
The protocol was matched with the given confidence level (0–100).
NeedMore
More data is needed; minimum is the smallest number of total prefix
bytes required before a definitive result can be given.
NoMatch
This prefix does not match the protocol.
Trait Implementations§
Source§impl Clone for DetectResult
impl Clone for DetectResult
Source§fn clone(&self) -> DetectResult
fn clone(&self) -> DetectResult
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 moreSource§impl Debug for DetectResult
impl Debug for DetectResult
impl Eq for DetectResult
Source§impl PartialEq for DetectResult
impl PartialEq for DetectResult
impl StructuralPartialEq for DetectResult
Auto Trait Implementations§
impl Freeze for DetectResult
impl RefUnwindSafe for DetectResult
impl Send for DetectResult
impl Sync for DetectResult
impl Unpin for DetectResult
impl UnsafeUnpin for DetectResult
impl UnwindSafe for DetectResult
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