pub struct TimerBase<T>where
T: 'static + Send,{ /* private fields */ }
Expand description
Shared coordination logic for timer threads.
Implementations§
Source§impl<T> TimerBase<T>where
T: 'static + Send,
impl<T> TimerBase<T>where
T: 'static + Send,
pub fn schedule_with_delay(&self, delay: Duration, data: T) -> Guard
pub fn schedule_with_date<D>(&self, date: DateTime<D>, data: T) -> Guardwhere
D: TimeZone,
pub fn schedule_repeating(&self, repeat: Duration, data: T) -> Guard
pub fn schedule<D>(
&self,
date: DateTime<D>,
repeat: Option<Duration>,
data: T,
) -> Guardwhere
D: TimeZone,
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TimerBase<T>
impl<T> RefUnwindSafe for TimerBase<T>
impl<T> Send for TimerBase<T>
impl<T> Sync for TimerBase<T>
impl<T> Unpin for TimerBase<T>
impl<T> UnwindSafe for TimerBase<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more