Struct async_component_core::context::ComponentStream
source · pub struct ComponentStream<C> { /* private fields */ }
Implementations§
source§impl<C: AsyncComponent> ComponentStream<C>
impl<C: AsyncComponent> ComponentStream<C>
sourcepub fn new(func: impl FnOnce(&StateContext) -> C) -> Self
pub fn new(func: impl FnOnce(&StateContext) -> C) -> Self
Create new ComponentStream