expression
Match heartbeat acknowledgments to their probes
An application heartbeat can test protocol responsiveness. Match replies to the active probe so an obsolete response does not renew liveness. A probe acknowledgment is not proof that all application operations will succeed. Expected stdout (not executed): false true false Common mistake: Marking a session healthy from any delayed heartbeat reply.
Formal Syntax & Structure
rust syntaxrust
reply_id == outstanding_probe_idWorking Example
Example Snippetrust
fn main() { let outstanding = Some(8u64); for reply in [7, 8, 9] { println!("{}", outstanding == Some(reply)); }}