Lines Matching refs:T
15 pub struct PinHrTimerHandle<'a, T>
17 T: HasHrTimer<T>,
19 pub(crate) inner: Pin<&'a T>,
24 unsafe impl<'a, T> HrTimerHandle for PinHrTimerHandle<'a, T>
26 T: HasHrTimer<T>,
29 let self_ptr: *const T = self.inner.get_ref(); in cancel() constant
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<'a, T> Drop for PinHrTimerHandle<'a, T>
43 T: HasHrTimer<T>,
52 unsafe impl<'a, T> UnsafeHrTimerPointer for Pin<&'a T>
54 T: Send + Sync,
55 T: HasHrTimer<T>,
56 T: HrTimerCallback<Pointer<'a> = Self>,
58 type TimerMode = <T as HasHrTimer<T>>::TimerMode;
59 type TimerHandle = PinHrTimerHandle<'a, T>;
63 expires: <<T as HasHrTimer<T>>::TimerMode as HrTimerMode>::Expires, in start()
66 let self_ptr: *const T = self.get_ref(); in start() constant
72 unsafe { T::start(self_ptr, expires) }; in start()
78 impl<'a, T> RawHrTimerCallback for Pin<&'a T>
80 T: HasHrTimer<T>,
81 T: HrTimerCallback<Pointer<'a> = Self>,
87 let timer_ptr = ptr.cast::<HrTimer<T>>(); in run()
91 let receiver_ptr = unsafe { T::timer_container_of(timer_ptr) }; in run()
113 T::run(receiver_pin, context).into_c() in run()