Expand description
A common trait and useful implementations for matching against received messages.
Structs§
- Matches on every message it sees. This will rarely be used in combination with other matchers, since it will respond to all messages.
- Matches on arbitrary logic provided by a closure.
- Matches on exact JSON data. This will be most useful when the exact contents of a message are important for matching, and any failure to match should cause an error.
- Matches on JSON patterns, useful for matching on all messages that have a certain field, or matching data of only some type.
- Matches on any message containing a given string.
- Matches on exact string messages.
Traits§
- An implementable trait accepted by
WsMock
, allowing extension for arbitrary matching.