#[non_exhaustive]#[repr(u8)]pub enum LapTrigger {
Manual = 0,
Time = 1,
Distance = 2,
PositionStart = 3,
PositionLap = 4,
PositionWaypoint = 5,
PositionMarked = 6,
SessionEnd = 7,
FitnessEquipment = 8,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Manual = 0
Time = 1
Distance = 2
PositionStart = 3
PositionLap = 4
PositionWaypoint = 5
PositionMarked = 6
SessionEnd = 7
FitnessEquipment = 8
Implementations§
Source§impl LapTrigger
impl LapTrigger
Trait Implementations§
Source§impl Clone for LapTrigger
impl Clone for LapTrigger
Source§fn clone(&self) -> LapTrigger
fn clone(&self) -> LapTrigger
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 LapTrigger
impl Debug for LapTrigger
Source§impl Hash for LapTrigger
impl Hash for LapTrigger
Source§impl PartialEq for LapTrigger
impl PartialEq for LapTrigger
Source§fn eq(&self, other: &LapTrigger) -> bool
fn eq(&self, other: &LapTrigger) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LapTrigger
impl Eq for LapTrigger
impl StructuralPartialEq for LapTrigger
Auto Trait Implementations§
impl Freeze for LapTrigger
impl RefUnwindSafe for LapTrigger
impl Send for LapTrigger
impl Sync for LapTrigger
impl Unpin for LapTrigger
impl UnsafeUnpin for LapTrigger
impl UnwindSafe for LapTrigger
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