impl<C, L> DefaultTimerRegistration<C, L>
where
C: ExecutorClock<Instant = GlobalManualInstant>,
L: LocalTimerSubmit<DefaultTimerItem<C, L>>,
{
#[doc(hidden)]
pub fn prepare_unbound(kind: TimerRegistrationKind) -> pi_result::RawResult<Self, TimerError> {
prepare_unbound_registration_inner(kind)
}
#[doc(hidden)]
pub fn bind_source(&self, access: &DefaultTimerAccess<C, L>) -> pi_result::RawResult<(), TimerError> {
bind_registration_source_inner(self, access)
}
}
impl<C, L> DefaultTimerAccess<C, L> where C: ExecutorClock<Instant = GlobalManualInstant>, L: LocalTimerSubmit<DefaultTimerItem<C, L>> {
#[doc(hidden)]
pub fn is_same_source(&self, other: &Self) -> bool {
default_timer_same_source_inner(self, other)
}
#[doc(hidden)]
pub fn register_with_acceptance(&self, deadline: GlobalManualInstant, item: DefaultTimerItem<C, L>,
accepted: &std::sync::atomic::AtomicBool,
member_ready: &std::sync::atomic::AtomicBool) -> pi_result::RawResult<CancelTimerKey, TimerSubmitError<DefaultTimerItem<C, L>>> {
default_register_with_acceptance_inner(self, deadline, item, accepted, member_ready)
}
}
include!("member_timer_registration_inner.rs");