pub struct TimerBase<T> where
T: 'static + Send, { /* private fields */ }
Expand description
Shared coordination logic for timer threads.
Implementations
sourceimpl<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) -> Guard where
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
) -> Guard where
D: TimeZone,
Trait Implementations
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more