pub struct TimerA2 { /* private fields */ }Implementations§
Source§impl TimerA2
impl TimerA2
pub fn new() -> (Self, UnboundedReceiver<TimerEvent>)
pub fn add_timer(&mut self, delay: Duration) -> Result<TimerId>
pub fn add_periodic_timer( &mut self, delay: Duration, interval: Option<Duration>, ) -> Result<TimerId>
pub fn remove_timer(&mut self, id: TimerId)
pub async fn run(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for TimerA2
impl RefUnwindSafe for TimerA2
impl Send for TimerA2
impl Sync for TimerA2
impl Unpin for TimerA2
impl UnsafeUnpin for TimerA2
impl UnwindSafe for TimerA2
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