pub trait RequestMatcher: Send + Sync {
// Required methods
fn match_score(&self, request: &ProtocolRequest) -> f64;
fn protocol(&self) -> Protocol;
}
Expand description
Trait for request matching across protocols
Required Methods§
Sourcefn match_score(&self, request: &ProtocolRequest) -> f64
fn match_score(&self, request: &ProtocolRequest) -> f64
Match a request and return a score (higher = better match)