Home
last modified time | relevance | path

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

/external/rust/crates/tokio/src/runtime/task/
Draw.rs8 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
Dmod.rs17 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()
Djoin.rs1 use crate::runtime::task::RawTask;
145 raw: Option<RawTask>,
154 pub(super) fn new(raw: RawTask) -> JoinHandle<T> { in new()
Dcore.rs295 use crate::runtime::task::RawTask;
297 let task = unsafe { RawTask::from_raw(self.into()) };
/external/rust/crates/async-task/src/
Draw.rs61 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()
Drunnable.rs10 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()