pub trait Monitor:
Clone
+ Send
+ 'static {
type PublicKey: PublicKey;
type Response: Committable + Digestible + Codec;
// Required method
fn collected(
&mut self,
handler: Self::PublicKey,
response: Self::Response,
count: usize,
) -> impl Future<Output = ()> + Send;
}
Required Associated Types§
Sourcetype Response: Committable + Digestible + Codec
type Response: Committable + Digestible + Codec
The type of response collected.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.