[−][src]Function futures_micro::poll_state
pub fn poll_state<F, S, T>(state: S, fun: F) -> PollState<F, S>ⓘ where
F: FnMut(&mut S, &mut Context<'_>) -> Poll<T>,
Like poll_fn
, but provides mutable access to a state.
pub fn poll_state<F, S, T>(state: S, fun: F) -> PollState<F, S>ⓘ where
F: FnMut(&mut S, &mut Context<'_>) -> Poll<T>,
Like poll_fn
, but provides mutable access to a state.