pub enum TimerReturn {
Reschedule,
Cancel,
}Expand description
Indicate whether or not to reschedule a periodic timer
Variants§
Implementations§
Source§impl TimerReturn
impl TimerReturn
Sourcepub fn should_reschedule(&self) -> bool
pub fn should_reschedule(&self) -> bool
Whether or not this timer should be rescheduled
Trait Implementations§
Source§impl Clone for TimerReturn
impl Clone for TimerReturn
Source§fn clone(&self) -> TimerReturn
fn clone(&self) -> TimerReturn
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimerReturn
impl Debug for TimerReturn
Source§impl Default for TimerReturn
impl Default for TimerReturn
Source§fn default() -> TimerReturn
fn default() -> TimerReturn
Returns the “default value” for a type. Read more
Source§impl From<TimerReturn> for TimerReturn<()>
impl From<TimerReturn> for TimerReturn<()>
Source§fn from(tr: TimerReturn) -> TimerReturn<()>
fn from(tr: TimerReturn) -> TimerReturn<()>
Converts to this type from the input type.
Source§impl Hash for TimerReturn
impl Hash for TimerReturn
Source§impl PartialEq for TimerReturn
impl PartialEq for TimerReturn
Source§fn eq(&self, other: &TimerReturn) -> bool
fn eq(&self, other: &TimerReturn) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TimerReturn
impl Eq for TimerReturn
impl StructuralPartialEq for TimerReturn
Auto Trait Implementations§
impl Freeze for TimerReturn
impl RefUnwindSafe for TimerReturn
impl Send for TimerReturn
impl Sync for TimerReturn
impl Unpin for TimerReturn
impl UnsafeUnpin for TimerReturn
impl UnwindSafe for TimerReturn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DispatchEvent for T
impl<T> DispatchEvent for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.