| 1 | //! Tools for working with tasks. |
| 2 | |
| 3 | #![no_std] |
| 4 | #![doc(test( |
| 5 | no_crate_inject, |
| 6 | attr( |
| 7 | deny(warnings, rust_2018_idioms, single_use_lifetimes), |
| 8 | allow(dead_code, unused_assignments, unused_variables) |
| 9 | ) |
| 10 | ))] |
| 11 | #![warn(missing_docs, unsafe_op_in_unsafe_fn)] |
| 12 | |
| 13 | #[cfg(feature = "alloc")] |
| 14 | extern crate allocrust-analyzer cargo futures-task 0.3.32 alloc/; |
| 15 | #[cfg(feature = "std")] |
| 16 | extern crate stdrust-analyzer cargo futures-task 0.3.32 std/; |
| 17 | |
| 18 | mod spawnrust-analyzer cargo futures-task 0.3.32 spawn/; |
| 19 | pub use craterust-analyzer cargo futures-task 0.3.32 crate/::spawnrust-analyzer cargo futures-task 0.3.32 spawn/::{LocalSpawnrust-analyzer cargo futures-task 0.3.32 spawn/LocalSpawn#, Spawnrust-analyzer cargo futures-task 0.3.32 spawn/Spawn#, SpawnErrorrust-analyzer cargo futures-task 0.3.32 spawn/SpawnError#}; |
| 20 | |
| 21 | #[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))] |
| 22 | #[cfg(feature = "alloc")] |
| 23 | mod arc_wakerust-analyzer cargo futures-task 0.3.32 arc_wake/; |
| 24 | #[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))] |
| 25 | #[cfg(feature = "alloc")] |
| 26 | pub use craterust-analyzer cargo futures-task 0.3.32 crate/::arc_wakerust-analyzer cargo futures-task 0.3.32 arc_wake/::ArcWakerust-analyzer cargo futures-task 0.3.32 arc_wake/ArcWake#; |
| 27 | |
| 28 | #[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))] |
| 29 | #[cfg(feature = "alloc")] |
| 30 | mod wakerrust-analyzer cargo futures-task 0.3.32 waker/; |
| 31 | #[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))] |
| 32 | #[cfg(feature = "alloc")] |
| 33 | pub use craterust-analyzer cargo futures-task 0.3.32 crate/::wakerrust-analyzer cargo futures-task 0.3.32 waker/::wakerrust-analyzer cargo futures-task 0.3.32 waker/waker().; |
| 34 | |
| 35 | #[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))] |
| 36 | #[cfg(feature = "alloc")] |
| 37 | mod waker_refrust-analyzer cargo futures-task 0.3.32 waker_ref/; |
| 38 | #[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))] |
| 39 | #[cfg(feature = "alloc")] |
| 40 | pub use craterust-analyzer cargo futures-task 0.3.32 crate/::waker_refrust-analyzer cargo futures-task 0.3.32 waker_ref/::{waker_refrust-analyzer cargo futures-task 0.3.32 waker_ref/waker_ref()., WakerRefrust-analyzer cargo futures-task 0.3.32 waker_ref/WakerRef#}; |
| 41 | |
| 42 | mod future_objrust-analyzer cargo futures-task 0.3.32 future_obj/; |
| 43 | pub use craterust-analyzer cargo futures-task 0.3.32 crate/::future_objrust-analyzer cargo futures-task 0.3.32 future_obj/::{FutureObjrust-analyzer cargo futures-task 0.3.32 future_obj/FutureObj#, LocalFutureObjrust-analyzer cargo futures-task 0.3.32 future_obj/LocalFutureObj#, UnsafeFutureObjrust-analyzer cargo futures-task 0.3.32 future_obj/UnsafeFutureObj#}; |
| 44 | |
| 45 | mod noop_wakerrust-analyzer cargo futures-task 0.3.32 noop_waker/; |
| 46 | pub use craterust-analyzer cargo futures-task 0.3.32 crate/::noop_wakerrust-analyzer cargo futures-task 0.3.32 noop_waker/::noop_wakerrust-analyzer cargo futures-task 0.3.32 noop_waker/noop_waker().; |
| 47 | pub use craterust-analyzer cargo futures-task 0.3.32 crate/::noop_wakerrust-analyzer cargo futures-task 0.3.32 noop_waker/::noop_waker_refrust-analyzer cargo futures-task 0.3.32 noop_waker/noop_waker_ref().; |
| 48 | |
| 49 | #[doc(no_inline)] |
| 50 | pub use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::taskrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/::{Contextrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Context#, Pollrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/poll/Poll#, RawWakerrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/RawWaker#, RawWakerVTablerust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/RawWakerVTable#, Wakerrust-analyzer cargo core https://github.com/rust-lang/rust/library/core task/wake/Waker#}; |