pub trait Application<E>:
Clone
+ Send
+ 'static{
type SigningScheme: Scheme;
type Context: Epochable;
type Block: Block;
// Required methods
fn genesis(&mut self) -> impl Future<Output = Self::Block> + Send;
fn propose(
&mut self,
context: (E, Self::Context),
ancestry: AncestorStream<Self::SigningScheme, Self::Block>,
) -> impl Future<Output = Option<Self::Block>> + Send;
}Expand description
Application is a minimal interface for standard implementations that operate over a stream of epoched blocks.
Required Associated Types§
Sourcetype SigningScheme: Scheme
type SigningScheme: Scheme
The signing scheme used by the application.
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.