Lines Matching refs:T
19 pub struct BoxHrTimerHandle<T, A>
21 T: HasHrTimer<T>,
24 pub(crate) inner: NonNull<T>,
30 unsafe impl<T, A> HrTimerHandle for BoxHrTimerHandle<T, A>
32 T: HasHrTimer<T>,
38 let timer_ptr = unsafe { <T as HasHrTimer<T>>::raw_get_timer(self.inner.as_ptr()) }; in cancel()
42 unsafe { HrTimer::<T>::raw_cancel(timer_ptr) } in cancel()
46 impl<T, A> Drop for BoxHrTimerHandle<T, A>
48 T: HasHrTimer<T>,
55 drop(unsafe { Box::<T, A>::from_raw(self.inner.as_ptr()) }) in drop()
59 impl<T, A> HrTimerPointer for Pin<Box<T, A>>
61 T: 'static,
62 T: Send + Sync,
63 T: HasHrTimer<T>,
64 T: for<'a> HrTimerCallback<Pointer<'a> = Pin<Box<T, A>>>,
67 type TimerMode = <T as HasHrTimer<T>>::TimerMode;
68 type TimerHandle = BoxHrTimerHandle<T, A>;
72 expires: <<T as HasHrTimer<T>>::TimerMode as HrTimerMode>::Expires, in start()
85 unsafe { T::start(inner.as_ptr(), expires) }; in start()
95 impl<T, A> RawHrTimerCallback for Pin<Box<T, A>>
97 T: 'static,
98 T: HasHrTimer<T>,
99 T: for<'a> HrTimerCallback<Pointer<'a> = Pin<Box<T, A>>>,
102 type CallbackTarget<'a> = Pin<&'a mut T>;
106 let timer_ptr = ptr.cast::<super::HrTimer<T>>(); in run()
110 let data_ptr = unsafe { T::timer_container_of(timer_ptr) }; in run()
122 T::run(data_mut_ref).into_c() in run()