Lines Matching refs:T
15 pub struct ArcHrTimerHandle<T>
17 T: HasHrTimer<T>,
19 pub(crate) inner: Arc<T>,
24 unsafe impl<T> HrTimerHandle for ArcHrTimerHandle<T>
26 T: HasHrTimer<T>,
33 let timer_ptr = unsafe { <T as HasHrTimer<T>>::raw_get_timer(self_ptr) }; in cancel()
37 unsafe { HrTimer::<T>::raw_cancel(timer_ptr) } in cancel()
41 impl<T> Drop for ArcHrTimerHandle<T>
43 T: HasHrTimer<T>,
50 impl<T> HrTimerPointer for Arc<T>
52 T: 'static,
53 T: Send + Sync,
54 T: HasHrTimer<T>,
55 T: for<'a> HrTimerCallback<Pointer<'a> = Self>,
57 type TimerHandle = ArcHrTimerHandle<T>;
59 fn start(self, expires: Ktime) -> ArcHrTimerHandle<T> { in start() argument
64 unsafe { T::start(Arc::as_ptr(&self), expires) }; in start()
69 impl<T> RawHrTimerCallback for Arc<T>
71 T: 'static,
72 T: HasHrTimer<T>,
73 T: for<'a> HrTimerCallback<Pointer<'a> = Self>,
75 type CallbackTarget<'a> = ArcBorrow<'a, T>;
79 let timer_ptr = ptr.cast::<super::HrTimer<T>>(); in run()
83 let data_ptr = unsafe { T::timer_container_of(timer_ptr) }; in run()
98 T::run(receiver).into_c() in run()