[][src]Struct stakker::MaxTimerKey

pub struct MaxTimerKey { /* fields omitted */ }

Timer key for a Max timer

Used by timer_max_* methods in Core. It is used to delete a timer or change its expiry time. It is plain Copy data, 8 bytes long. Note that the key should only be used on this same Stakker instance. If it is used on another then it might cause a panic.

This sets a timer at the initial timeout time, then just records the largest of the timeout values provided until that original timer expires, at which point it sets a new timer. So this naturally absorbs a lot of changes without having to delete any timers. A typical use might be to take some action in a gap in activity, for example to do an expensive background check in a gap in the user's typing into a UI field. To implement this, the timer expiry time is set to now+1 (for example) by each keypress.

Trait Implementations

impl Clone for MaxTimerKey[src]

impl Copy for MaxTimerKey[src]

impl Debug for MaxTimerKey[src]

impl Default for MaxTimerKey[src]

impl Eq for MaxTimerKey[src]

impl PartialEq<MaxTimerKey> for MaxTimerKey[src]

impl StructuralEq for MaxTimerKey[src]

impl StructuralPartialEq for MaxTimerKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.