Lines Matching refs:T
11 pub struct PinMutHrTimerHandle<'a, T>
13 T: HasHrTimer<T>,
15 pub(crate) inner: NonNull<T>,
16 _p: PhantomData<&'a mut T>,
21 unsafe impl<'a, T> HrTimerHandle for PinMutHrTimerHandle<'a, T>
23 T: HasHrTimer<T>,
30 let timer_ptr = unsafe { <T as HasHrTimer<T>>::raw_get_timer(self_ptr) }; in cancel()
34 unsafe { HrTimer::<T>::raw_cancel(timer_ptr) } in cancel()
38 impl<'a, T> Drop for PinMutHrTimerHandle<'a, T>
40 T: HasHrTimer<T>,
49 unsafe impl<'a, T> UnsafeHrTimerPointer for Pin<&'a mut T>
51 T: Send + Sync,
52 T: HasHrTimer<T>,
53 T: HrTimerCallback<Pointer<'a> = Self>,
55 type TimerMode = <T as HasHrTimer<T>>::TimerMode;
56 type TimerHandle = PinMutHrTimerHandle<'a, T>;
60 expires: <<T as HasHrTimer<T>>::TimerMode as HrTimerMode>::Expires, in start()
72 unsafe { T::start(self_ptr.as_ptr(), expires) }; in start()
81 impl<'a, T> RawHrTimerCallback for Pin<&'a mut T>
83 T: HasHrTimer<T>,
84 T: HrTimerCallback<Pointer<'a> = Self>,
90 let timer_ptr = ptr.cast::<HrTimer<T>>(); in run()
94 let receiver_ptr = unsafe { T::timer_container_of(timer_ptr) }; in run()
116 T::run(receiver_pin, context).into_c() in run()