Home
last modified time | relevance | path

Searched defs:Future (Results 1 – 8 of 8) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/
Dconnector.rs33 type Future: Future<Output = Result<Self::Stream, Self::Error>> + Unpin + Sync + Send + 'static; typedef
36 fn connect(&self, uri: &Uri) -> Self::Future; in connect()
85 type Future = typedef
88 fn connect(&self, uri: &Uri) -> Self::Future { in connect()
116 type Future = typedef
119 fn connect(&self, uri: &Uri) -> Self::Future { in connect()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/task/
Dwaker.rs33 unsafe fn clone<T>(ptr: *const ()) -> RawWaker in clone()
60 fn raw_waker<T>(header: *const Header) -> RawWaker in raw_waker()
77 pub(crate) fn new<T>(header: &Header) -> WakerRefHeader<'_> in new()
Draw.rs241 unsafe fn run<T, S>(ptr: NonNull<Header>) -> bool in run()
253 T: Future, in schedule()
264 unsafe fn get_result<T, S>(ptr: NonNull<Header>, res: *mut ()) in get_result()
274 unsafe fn drop_ref<T, S>(ptr: NonNull<Header>) in drop_ref()
283 unsafe fn set_waker<T, S>(ptr: NonNull<Header>, cur_state: usize, waker: *const ()) -> bool in set_waker()
293 unsafe fn drop_join_handle<T, S>(ptr: NonNull<Header>) in drop_join_handle()
303 unsafe fn release<T, S>(ptr: NonNull<Header>) in release()
312 unsafe fn cancel<T, S>(ptr: NonNull<Header>) in cancel()
321 fn create_vtable<T, S>() -> &'static TaskVirtualTable in create_vtable()
Dmod.rs113 T: Future, in create_raw_task()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/
Dlib.rs93 pub fn block_on<T>(task: T) -> T::Output in block_on()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/time/
Dtimeout.rs44 pub fn timeout<F>(duration: Duration, future: F) -> Timeout<F> in timeout()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/
Dblock_on.rs94 pub(crate) fn block_on<T>(mut task: T) -> T::Output in block_on()
Dcurrent_thread.rs146 pub(crate) fn block_on<T>(&self, future: T) -> T::Output in block_on()