pub enum BadgeCondition {
FirstFixExecuted,
PerfectHealth {
count: u32,
},
PortWhisperer,
EnvMaster,
DependencyHero,
ArcadeWin {
score: u32,
},
SpeedRunner,
NightOwl,
}Expand description
A predicate over ArcadeStats that decides when a badge unlocks.
Variants§
FirstFixExecuted
Applying at least one auto-fix.
PerfectHealth
Reaching count consecutive perfectly-healthy runs.
PortWhisperer
Killing at least GHOST_PROCESS_TARGET ghost processes.
EnvMaster
Creating at least ENV_MASTER_TARGET .env files.
DependencyHero
Reserved: no current data source, never triggered by the shipped badges. Kept so the condition vocabulary matches the design spec.
ArcadeWin
Beating score points in SyntaxBreaker.
SpeedRunner
A diagnostic scan completing under SPEED_RUNNER_MS milliseconds.
NightOwl
Having run Limitless during a local hour in
NIGHT_OWL_FROM_HOUR..=NIGHT_OWL_TO_HOUR.
Implementations§
Source§impl BadgeCondition
impl BadgeCondition
Sourcepub fn matches(&self, stats: &ArcadeStats) -> bool
pub fn matches(&self, stats: &ArcadeStats) -> bool
Whether stats satisfy this condition.
Trait Implementations§
Source§impl Clone for BadgeCondition
impl Clone for BadgeCondition
impl Copy for BadgeCondition
Source§impl Debug for BadgeCondition
impl Debug for BadgeCondition
impl Eq for BadgeCondition
Source§impl PartialEq for BadgeCondition
impl PartialEq for BadgeCondition
impl StructuralPartialEq for BadgeCondition
Auto Trait Implementations§
impl Forget for BadgeCondition
impl Freeze for BadgeCondition
impl RefUnwindSafe for BadgeCondition
impl Send for BadgeCondition
impl Sync for BadgeCondition
impl Unpin for BadgeCondition
impl UnsafeUnpin for BadgeCondition
impl UnwindSafe for BadgeCondition
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