Home
last modified time | relevance | path

Searched refs:UnfoldState (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/futures-util/src/stream/
Dunfold.rs2 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()
/external/rust/crates/futures-util/src/
Dunfold_state.rs10 pub(crate) enum UnfoldState<T, R> {
22 impl<T, R> UnfoldState<T, R> { impl
32 UnfoldState::Value { .. } => match self.project_replace(UnfoldState::Empty) { in take_value()
/external/rust/crates/futures-util/src/sink/
Dunfold.rs2 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()