pub trait Collector:
Clone
+ Send
+ 'static {
type Digest: Digest;
// Required method
fn acknowledged(
&mut self,
proof: Proof,
payload: Self::Digest,
) -> impl Future<Output = ()> + Send;
}Expand description
Collector is the interface responsible for handling notifications of broadcasted payloads.
Required Associated Types§
Required Methods§
Sourcefn acknowledged(
&mut self,
proof: Proof,
payload: Self::Digest,
) -> impl Future<Output = ()> + Send
fn acknowledged( &mut self, proof: Proof, payload: Self::Digest, ) -> impl Future<Output = ()> + Send
Emit that a payload has been successfully broadcasted. This is used to acknowledge that the payload has been “received” by the network, for example that it has been successfully gossiped to a threshold of validators.
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.