pub struct FirstState<R: Stream> { /* private fields */ }Expand description
The coroutine behind state_in_first:
it waits for the upstream’s first value, hands over a state holding it,
and keeps the state up to date.
Trait Implementations§
Source§impl<R> Future for FirstState<R>
impl<R> Future for FirstState<R>
impl<R: Stream> Unpin for FirstState<R>
Auto Trait Implementations§
impl<R> Forget for FirstState<R>
impl<R> Freeze for FirstState<R>
impl<R> Move for FirstState<R>
impl<R> RefUnwindSafe for FirstState<R>where
R: RefUnwindSafe,
Option<OneshotSender<StateFlow<<R as Stream>::Item>>>: RefUnwindSafe,
Option<StateFlow<<R as Stream>::Item>>: RefUnwindSafe,
impl<R> Send for FirstState<R>
impl<R> Sync for FirstState<R>
impl<R> UnsafeUnpin for FirstState<R>where
R: UnsafeUnpin,
Option<OneshotSender<StateFlow<<R as Stream>::Item>>>: UnsafeUnpin,
Option<StateFlow<<R as Stream>::Item>>: UnsafeUnpin,
impl<R> UnwindSafe for FirstState<R>where
R: UnwindSafe,
Option<OneshotSender<StateFlow<<R as Stream>::Item>>>: UnwindSafe,
Option<StateFlow<<R as Stream>::Item>>: UnwindSafe,
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more