#[non_exhaustive]pub enum LapTrigger {
Manual,
Time,
Distance,
PositionStart,
PositionLap,
PositionWaypoint,
PositionMarked,
FitnessEquipment,
}Expand description
What ended a lap, for Writer::lap_by: the profile’s
lap_trigger, less session_end, which the encoder writes on each session’s last lap.
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
The wearer.
Time
A lap time.
Distance
A lap distance.
PositionStart
Reaching the start position.
PositionLap
Reaching a lap position.
PositionWaypoint
Reaching a waypoint.
PositionMarked
Reaching a marked position.
FitnessEquipment
Fitness equipment.
Implementations§
Trait Implementations§
Source§impl Clone for LapTrigger
impl Clone for LapTrigger
impl Copy for LapTrigger
Source§impl Debug for LapTrigger
impl Debug for LapTrigger
Source§impl Display for LapTrigger
impl Display for LapTrigger
impl Eq for LapTrigger
Source§impl Hash for LapTrigger
impl Hash for LapTrigger
Source§impl PartialEq for LapTrigger
impl PartialEq for LapTrigger
impl StructuralPartialEq for LapTrigger
Auto Trait Implementations§
impl Forget for LapTrigger
impl Freeze for LapTrigger
impl Move 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