pub trait Committer:
Clone
+ Send
+ 'static {
type Digest: Array;
// Required methods
fn prepared(
&mut self,
proof: Proof,
payload: Self::Digest,
) -> impl Future<Output = ()> + Send;
fn finalized(
&mut self,
proof: Proof,
payload: Self::Digest,
) -> impl Future<Output = ()> + Send;
}
Expand description
Committer is the interface responsible for handling notifications of payload status.
Required Associated Types§
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.