Struct snooze::Snooze
[−]
[src]
pub struct Snooze(_);
Methods
impl Snooze
[src]
fn new(duration: Duration) -> SnoozeResult<Snooze>
fn reset(&mut self) -> SnoozeResult<()>
fn wait(&mut self) -> SnoozeResult<()>
Puts the current thread to sleep until the next wake-up time