Skip to main content

ReplyMatcher

Trait ReplyMatcher 

Source
pub trait ReplyMatcher {
    // Required method
    fn match_reply(&mut self, reply_seq: i64) -> bool;
}
Expand description

Type-erased RequestCorrelator::resolve, so one Promise type can poll a plain service client and an action sub-client alike.

Required Methods§

Source

fn match_reply(&mut self, reply_seq: i64) -> bool

true if reply_seq answers a pending request (which is then retired), false if the reply is stale and must be dropped.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<K: Copy, const N: usize> ReplyMatcher for RequestCorrelator<K, N>