Enum debounce::buffer::State[][src]

pub enum State<T> {
    Ready(T),
    Wait(Duration),
    Empty,
}
Expand description

Current state of the debouncing buffer returned from Get::get():

  • Ready(T) when the event is ready to be delivered after the timeout (moves data out of the buffer)
  • Wait(Duration) indicates how much time is left until Ready
  • Empty means the buffer is empty

Variants

Ready(T)

Tuple Fields of Ready

0: T
Wait(Duration)

Tuple Fields of Wait

0: Duration
Empty

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.