Struct ddc::Delay
[−]
[src]
pub struct Delay { /* fields omitted */ }A type that can help with implementing the DDC specificationed delays.
Methods
impl Delay[src]
pub fn new(delay: Duration) -> Self[src]
Creates a new delay starting now.
pub fn remaining(&self) -> Duration[src]
The time remaining in this delay.
pub fn sleep(&mut self)[src]
Waits out the remaining time in this delay.
Trait Implementations
impl Clone for Delay[src]
fn clone(&self) -> Delay[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Delay[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more