pub trait Matcher:
Send
+ Sync
+ Debug {
// Required method
fn matches(&self, text: &str) -> bool;
}
Expand description
An implementable trait accepted by WsMock
, allowing extension for arbitrary matching.
Users of this crate can implement any logic required for matching, so long as the implementation is Send + Sync for Tokio async and thread safety.