[][src]Enum hierarchical_hash_wheel_timer::TimerReturn

pub enum TimerReturn<S> {
    Reschedule(S),
    Cancel,
}

Indicate whether or not to reschedule a periodic timer

Variants

Reschedule(S)

Reschedule the timer

Cancel

Do not reschedule the timer

Methods

impl<S> TimerReturn<S>[src]

pub fn should_reschedule(&self) -> bool[src]

Whether or not this timer should be rescheduled

pub fn map<T, F>(self, f: F) -> TimerReturn<T> where
    F: FnOnce(S) -> T, 
[src]

Replace the item stored in the TimerReturn::Reschedule variant with the return value of the given function, given the current value

Trait Implementations

impl<S: Clone> Clone for TimerReturn<S>[src]

impl<S: Copy> Copy for TimerReturn<S>[src]

impl<S: Debug> Debug for TimerReturn<S>[src]

impl<S: Eq> Eq for TimerReturn<S>[src]

impl<S: Hash> Hash for TimerReturn<S>[src]

impl<S: PartialEq> PartialEq<TimerReturn<S>> for TimerReturn<S>[src]

impl<S> StructuralEq for TimerReturn<S>[src]

impl<S> StructuralPartialEq for TimerReturn<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for TimerReturn<S> where
    S: RefUnwindSafe

impl<S> Send for TimerReturn<S> where
    S: Send

impl<S> Sync for TimerReturn<S> where
    S: Sync

impl<S> Unpin for TimerReturn<S> where
    S: Unpin

impl<S> UnwindSafe for TimerReturn<S> where
    S: UnwindSafe

Blanket Implementations

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

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

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,