[−][src]Enum hierarchical_hash_wheel_timer::TimerReturn
Indicate whether or not to reschedule a periodic timer
Variants
Reschedule the timer
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]
F: FnOnce(S) -> T,
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]
fn clone(&self) -> TimerReturn<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<S: PartialEq> PartialEq<TimerReturn<S>> for TimerReturn<S>
[src]
fn eq(&self, other: &TimerReturn<S>) -> bool
[src]
fn ne(&self, other: &TimerReturn<S>) -> bool
[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,
S: RefUnwindSafe,
impl<S> Send for TimerReturn<S> where
S: Send,
S: Send,
impl<S> Sync for TimerReturn<S> where
S: Sync,
S: Sync,
impl<S> Unpin for TimerReturn<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for TimerReturn<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,