Struct zenoh_util::Timer
source · pub struct Timer { /* private fields */ }Implementations§
source§impl Timer
impl Timer
pub fn new(spawn_blocking: bool) -> Timer
pub fn start(&mut self, spawn_blocking: bool)
pub async fn start_async(&mut self, spawn_blocking: bool)
pub fn stop(&mut self)
pub async fn stop_async(&mut self)
pub fn add(&self, event: TimedEvent)
pub async fn add_async(&self, event: TimedEvent)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl !UnwindSafe for Timer
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