Skip to main content

FlowConstructor

Type Alias FlowConstructor 

Source
pub type FlowConstructor<S, E> = Box<dyn FnOnce(InitContext) -> Pin<Box<dyn Future<Output = Box<dyn GraphicsFlow<S, E>>>>>>;
Expand description

Type alias for a flow constructor (factory function).

A flow constructor takes an InitContext and asynchronously returns a boxed GraphicsFlow. This allows lazy initialization and resource loading.

Aliased Typeยง

pub struct FlowConstructor<S, E>(/* private fields */);