pub enum ServiceTiming<D: TimeDuration> {
Immediate,
Delay(D),
Idle,
}Expand description
Indicates when update() should next be called.
Variants§
Immediate
Call back as soon as possible.
Delay(D)
Nothing will happen until at least this delay elapses.
Idle
Button is idle. Only call again when the input changes.
Implementations§
Source§impl<D: TimeDuration> ServiceTiming<D>
impl<D: TimeDuration> ServiceTiming<D>
Trait Implementations§
Source§impl<D: Clone + TimeDuration> Clone for ServiceTiming<D>
impl<D: Clone + TimeDuration> Clone for ServiceTiming<D>
Source§fn clone(&self) -> ServiceTiming<D>
fn clone(&self) -> ServiceTiming<D>
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 moreimpl<D: Copy + TimeDuration> Copy for ServiceTiming<D>
Source§impl<D: Debug + TimeDuration> Debug for ServiceTiming<D>
impl<D: Debug + TimeDuration> Debug for ServiceTiming<D>
impl<D: Eq + TimeDuration> Eq for ServiceTiming<D>
Source§impl<D: PartialEq + TimeDuration> PartialEq for ServiceTiming<D>
impl<D: PartialEq + TimeDuration> PartialEq for ServiceTiming<D>
Source§fn eq(&self, other: &ServiceTiming<D>) -> bool
fn eq(&self, other: &ServiceTiming<D>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<D: PartialEq + TimeDuration> StructuralPartialEq for ServiceTiming<D>
Auto Trait Implementations§
impl<D> Freeze for ServiceTiming<D>where
D: Freeze,
impl<D> RefUnwindSafe for ServiceTiming<D>where
D: RefUnwindSafe,
impl<D> Send for ServiceTiming<D>where
D: Send,
impl<D> Sync for ServiceTiming<D>where
D: Sync,
impl<D> Unpin for ServiceTiming<D>where
D: Unpin,
impl<D> UnsafeUnpin for ServiceTiming<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for ServiceTiming<D>where
D: UnwindSafe,
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