[−][src]Struct stakker::MinTimerKey
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]
fn clone(&self) -> MinTimerKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MinTimerKey
[src]
impl Debug for MinTimerKey
[src]
impl Default for MinTimerKey
[src]
fn default() -> MinTimerKey
[src]
impl Eq for MinTimerKey
[src]
impl PartialEq<MinTimerKey> for MinTimerKey
[src]
fn eq(&self, other: &MinTimerKey) -> bool
[src]
fn ne(&self, other: &MinTimerKey) -> bool
[src]
impl StructuralEq for MinTimerKey
[src]
impl StructuralPartialEq for MinTimerKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for MinTimerKey
impl Send for MinTimerKey
impl Sync for MinTimerKey
impl Unpin for MinTimerKey
impl UnwindSafe for MinTimerKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,