pub struct TimerApi<Key, Msg, Ctx, T> { /* private fields */ }Implementations§
Source§impl<Ctx, Key, Msg, T> TimerApi<Key, Msg, Ctx, T>
 
impl<Ctx, Key, Msg, T> TimerApi<Key, Msg, Ctx, T>
pub async fn new(ctx: &mut Ctx) -> Result<Self, TimerError>
pub async fn cancel(&mut self, key: T::Key) -> Result<(), TimerError>
pub async fn schedule_once_at( &mut self, key: Key, at: T::Instant, msg: Msg, ) -> Result<(), TimerError>
pub async fn schedule_once_after( &mut self, key: Key, after: T::Duration, msg: Msg, ) -> Result<(), TimerError>
Auto Trait Implementations§
impl<Key, Msg, Ctx, T> Freeze for TimerApi<Key, Msg, Ctx, T>where
    Ctx: Freeze,
impl<Key, Msg, Ctx, T> RefUnwindSafe for TimerApi<Key, Msg, Ctx, T>
impl<Key, Msg, Ctx, T> Send for TimerApi<Key, Msg, Ctx, T>
impl<Key, Msg, Ctx, T> Sync for TimerApi<Key, Msg, Ctx, T>
impl<Key, Msg, Ctx, T> Unpin for TimerApi<Key, Msg, Ctx, T>
impl<Key, Msg, Ctx, T> UnwindSafe for TimerApi<Key, Msg, Ctx, 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