pub trait BroadcasterBuilder<State>: Send {
type Broadcaster: Component;
// Required method
fn build_broadcaster(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::Broadcaster>> + Send;
}Expand description
Builder for broadcaster components (flashbots, mempool, etc.)
Required Associated Types§
Sourcetype Broadcaster: Component
type Broadcaster: Component
The broadcaster component type
Required Methods§
Sourcefn build_broadcaster(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::Broadcaster>> + Send
fn build_broadcaster( self, ctx: &BuilderContext<State>, ) -> impl Future<Output = Result<Self::Broadcaster>> + Send
Build the broadcaster component
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.