Searched refs:RawTask (Results 1 – 6 of 6) sorted by relevance
/external/rust/crates/tokio/src/runtime/task/ |
D | raw.rs | 8 pub(super) struct RawTask { struct 40 impl RawTask { impl 41 pub(super) fn new<T, S>(task: T) -> RawTask in new() 49 RawTask { ptr } in new() 52 pub(super) unsafe fn from_raw(ptr: NonNull<Header>) -> RawTask { in from_raw() argument 53 RawTask { ptr } in from_raw() 94 impl Clone for RawTask { implementation 96 RawTask { ptr: self.ptr } in clone() 100 impl Copy for RawTask {} implementation
|
D | mod.rs | 17 use self::raw::RawTask; 39 raw: RawTask, 89 let raw = RawTask::new::<_, S>(task); 109 let raw = RawTask::new::<_, S>(task); 125 raw: RawTask::from_raw(ptr), in from_raw()
|
D | join.rs | 1 use crate::runtime::task::RawTask; 145 raw: Option<RawTask>, 154 pub(super) fn new(raw: RawTask) -> JoinHandle<T> { in new()
|
D | core.rs | 295 use crate::runtime::task::RawTask; 297 let task = unsafe { RawTask::from_raw(self.into()) };
|
/external/rust/crates/async-task/src/ |
D | raw.rs | 61 pub(crate) struct RawTask<F, T, S> { struct 75 impl<F, T, S> Copy for RawTask<F, T, S> {} argument 77 impl<F, T, S> Clone for RawTask<F, T, S> { implementation 83 impl<F, T, S> RawTask<F, T, S> impl 606 struct Guard<F, T, S>(RawTask<F, T, S>) in run() 629 RawTask::<F, T, S>::drop_future(ptr); in run() 643 RawTask::<F, T, S>::drop_ref(ptr); in run() 661 RawTask::<F, T, S>::drop_future(ptr); in run() 670 RawTask::<F, T, S>::drop_ref(ptr); in run()
|
D | runnable.rs | 10 use crate::raw::RawTask; 182 RawTask::<_, F::Output, S>::allocate(future, schedule) in spawn_unchecked() 184 RawTask::<F, F::Output, S>::allocate(future, schedule) in spawn_unchecked()
|