NetworkBuilder

Trait NetworkBuilder 

Source
pub trait NetworkBuilder<State>: Send {
    type Network: Component;

    // Required method
    fn build_network(
        self,
        ctx: &BuilderContext<State>,
    ) -> impl Future<Output = Result<Self::Network>> + Send;
}
Expand description

Builder for network components

Required Associated Types§

Source

type Network: Component

The network component type

Required Methods§

Source

fn build_network( self, ctx: &BuilderContext<State>, ) -> impl Future<Output = Result<Self::Network>> + Send

Build the network 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.

Implementors§