Searched refs:UnfoldState (Results 1 – 3 of 3) sorted by relevance
2 use crate::unfold_state::UnfoldState;57 state: UnfoldState::Value { value: init }, in unfold()67 state: UnfoldState<T, Fut>,89 if let UnfoldState::Empty = self.state { in is_terminated()108 this.state.set(UnfoldState::Future { in poll_next()119 this.state.set(UnfoldState::Value { value: next_state }); in poll_next()122 this.state.set(UnfoldState::Empty); in poll_next()
10 pub(crate) enum UnfoldState<T, R> {22 impl<T, R> UnfoldState<T, R> { impl32 UnfoldState::Value { .. } => match self.project_replace(UnfoldState::Empty) { in take_value()
2 use crate::unfold_state::UnfoldState;16 state: UnfoldState<T, R>,46 state: UnfoldState::Value { value: init }, in unfold()67 this.state.set(UnfoldState::Future { future }); in start_send()76 this.state.set(UnfoldState::Value { value: state }); in poll_flush()