Enum kompact::timer::TimerReturn
source · 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 copy of the value. Read more
1.0.0 · 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 GenericTimerReturn<()>
impl From<TimerReturn> for GenericTimerReturn<()>
source§fn from(tr: TimerReturn) -> Self
fn from(tr: TimerReturn) -> Self
Converts to this type from the input type.
source§impl Hash for TimerReturn
impl Hash for TimerReturn
source§impl PartialEq<TimerReturn> for TimerReturn
impl PartialEq<TimerReturn> for TimerReturn
source§fn eq(&self, other: &TimerReturn) -> bool
fn eq(&self, other: &TimerReturn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TimerReturn
impl Eq for TimerReturn
impl StructuralEq for TimerReturn
impl StructuralPartialEq for TimerReturn
Auto Trait Implementations§
impl RefUnwindSafe for TimerReturn
impl Send for TimerReturn
impl Sync for TimerReturn
impl Unpin 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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more