[][src]Struct stakker::MinTimerKey

pub struct MinTimerKey { /* fields omitted */ }

Timer key for a Min timer

Used by timer_min_* 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 is intended for use where the end-time is an estimate and where that estimate is progressively improved over time. The end-time is approached asymptotically to allow wiggle-room without having to update the underlying timer too many times, e.g. a 60s timer uses 5 timers in sequence, adjusting as it goes according to the latest estimate: ~15s before, ~4s before, ~1s before, ~0.125s before, end-time itself. So for example in the first 45s, the timer can accomodate up to 15s of change in the end-time without having to delete a timer.

Trait Implementations

impl Clone for MinTimerKey[src]

impl Copy for MinTimerKey[src]

impl Debug for MinTimerKey[src]

impl Default for MinTimerKey[src]

impl Eq for MinTimerKey[src]

impl PartialEq<MinTimerKey> for MinTimerKey[src]

impl StructuralEq for MinTimerKey[src]

impl StructuralPartialEq for MinTimerKey[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.