[][src]Function futures_micro::poll_state

pub fn poll_state<F, S, T>(state: S, fun: F) -> PollState<F, S>

Notable traits for PollState<F, S>

impl<F, S, T> Future for PollState<F, S> where
    F: FnMut(&mut S, &mut Context<'_>) -> Poll<T>, 
type Output = T;
where
    F: FnMut(&mut S, &mut Context<'_>) -> Poll<T>, 

Like poll_fn, but provides mutable access to a state.