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§
Required Methods§
Sourcefn build_network(
self,
ctx: &BuilderContext<State>,
) -> impl Future<Output = Result<Self::Network>> + Send
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.