pub struct ComponentStream<C> { /* private fields */ }
Implementations§
Source§impl<C: AsyncComponent> ComponentStream<C>
impl<C: AsyncComponent> ComponentStream<C>
Sourcepub fn new(func: impl FnOnce() -> C) -> Self
pub fn new(func: impl FnOnce() -> C) -> Self
Create new ComponentStream
Sourcepub fn enter<'a>(&'a mut self) -> EnteredComponentStream<'a, C>
pub fn enter<'a>(&'a mut self) -> EnteredComponentStream<'a, C>
Enter context scope with stream
Trait Implementations§
Source§impl<C: Debug> Debug for ComponentStream<C>
impl<C: Debug> Debug for ComponentStream<C>
impl<C: AsyncComponent> Unpin for ComponentStream<C>
Auto Trait Implementations§
impl<C> Freeze for ComponentStream<C>where
C: Freeze,
impl<C> !RefUnwindSafe for ComponentStream<C>
impl<C> Send for ComponentStream<C>where
C: Send,
impl<C> Sync for ComponentStream<C>where
C: Sync,
impl<C> !UnwindSafe for ComponentStream<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more