Home
last modified time | relevance | path

Searched refs:PollFn (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/tokio/src/future/
Dpoll_fn.rs11 pub struct PollFn<F> { struct
15 impl<F> Unpin for PollFn<F> {} implementation
18 pub fn poll_fn<T, F>(f: F) -> PollFn<F> in poll_fn()
22 PollFn { f } in poll_fn()
25 impl<F> fmt::Debug for PollFn<F> { implementation
31 impl<T, F> Future for PollFn<F> implementation
/external/rust/crates/futures-util/src/stream/
Dpoll_fn.rs11 pub struct PollFn<F> { struct
15 impl<F> Unpin for PollFn<F> {} argument
17 impl<F> fmt::Debug for PollFn<F> { implementation
41 pub fn poll_fn<T, F>(f: F) -> PollFn<F> in poll_fn()
45 assert_stream::<T, _>(PollFn { f }) in poll_fn()
48 impl<T, F> Stream for PollFn<F> implementation
Dmod.rs86 pub use self::poll_fn::{poll_fn, PollFn};
/external/rust/crates/futures-util/src/future/
Dpoll_fn.rs11 pub struct PollFn<F> { struct
15 impl<F> Unpin for PollFn<F> {} implementation
36 pub fn poll_fn<T, F>(f: F) -> PollFn<F> in poll_fn()
40 assert_future::<T, _>(PollFn { f }) in poll_fn()
43 impl<F> fmt::Debug for PollFn<F> { implementation
49 impl<T, F> Future for PollFn<F> implementation
Dmod.rs69 pub use self::poll_fn::{poll_fn, PollFn};
/external/rust/crates/futures/tests/
Dauto_traits.rs467 assert_impl!(PollFn<()>: Send);
468 assert_not_impl!(PollFn<*const ()>: Send);
469 assert_impl!(PollFn<()>: Sync);
470 assert_not_impl!(PollFn<*const ()>: Sync);
471 assert_impl!(PollFn<PhantomPinned>: Unpin);
1428 assert_impl!(PollFn<()>: Send);
1429 assert_not_impl!(PollFn<*const ()>: Send);
1430 assert_impl!(PollFn<()>: Sync);
1431 assert_not_impl!(PollFn<*const ()>: Sync);
1432 assert_impl!(PollFn<PhantomPinned>: Unpin);