Struct futures_util::stream::PollFn [−][src]
#[must_use = "streams do nothing unless polled"]pub struct PollFn<F> { /* fields omitted */ }
Expand description
Stream for the poll_fn function.
Trait Implementations
impl<T, F> Stream for PollFn<F> where
F: FnMut(&mut Context<'_>) -> Poll<Option<T>>, [src]
impl<T, F> Stream for PollFn<F> where
F: FnMut(&mut Context<'_>) -> Poll<Option<T>>, [src]type Item = T
type Item = TValues yielded by the stream.
impl<F> Unpin for PollFn<F>[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for PollFn<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for PollFn<F> where
F: Send,
F: Send,
impl<F> Sync for PollFn<F> where
F: Sync,
F: Sync,
impl<F> UnwindSafe for PollFn<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more