#[non_exhaustive]#[repr(u8)]pub enum DiveAlert {
Show 39 variants
NdlReached = 0,
GasSwitchPrompted = 1,
NearSurface = 2,
ApproachingNdl = 3,
Po2Warn = 4,
Po2CritHigh = 5,
Po2CritLow = 6,
TimeAlert = 7,
DepthAlert = 8,
DecoCeilingBroken = 9,
DecoComplete = 10,
SafetyStopBroken = 11,
SafetyStopComplete = 12,
CnsWarning = 13,
CnsCritical = 14,
OtuWarning = 15,
OtuCritical = 16,
AscentCritical = 17,
AlertDismissedByKey = 18,
AlertDismissedByTimeout = 19,
BatteryLow = 20,
BatteryCritical = 21,
SafetyStopStarted = 22,
ApproachingFirstDecoStop = 23,
SetpointSwitchAutoLow = 24,
SetpointSwitchAutoHigh = 25,
SetpointSwitchManualLow = 26,
SetpointSwitchManualHigh = 27,
AutoSetpointSwitchIgnored = 28,
SwitchedToOpenCircuit = 29,
SwitchedToClosedCircuit = 30,
TankBatteryLow = 32,
Po2CcrDilLow = 33,
DecoStopCleared = 34,
ApneaNeutralBuoyancy = 35,
ApneaTargetDepth = 36,
ApneaSurface = 37,
ApneaHighSpeed = 38,
ApneaLowSpeed = 39,
}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.
NdlReached = 0
GasSwitchPrompted = 1
NearSurface = 2
ApproachingNdl = 3
Po2Warn = 4
Po2CritHigh = 5
Po2CritLow = 6
TimeAlert = 7
DepthAlert = 8
DecoCeilingBroken = 9
DecoComplete = 10
SafetyStopBroken = 11
SafetyStopComplete = 12
CnsWarning = 13
CnsCritical = 14
OtuWarning = 15
OtuCritical = 16
AscentCritical = 17
AlertDismissedByKey = 18
AlertDismissedByTimeout = 19
BatteryLow = 20
BatteryCritical = 21
SafetyStopStarted = 22
ApproachingFirstDecoStop = 23
SetpointSwitchAutoLow = 24
SetpointSwitchAutoHigh = 25
SetpointSwitchManualLow = 26
SetpointSwitchManualHigh = 27
AutoSetpointSwitchIgnored = 28
SwitchedToOpenCircuit = 29
SwitchedToClosedCircuit = 30
TankBatteryLow = 32
Po2CcrDilLow = 33
DecoStopCleared = 34
ApneaNeutralBuoyancy = 35
ApneaTargetDepth = 36
ApneaSurface = 37
ApneaHighSpeed = 38
ApneaLowSpeed = 39
Implementations§
Trait Implementations§
impl Copy for DiveAlert
impl Eq for DiveAlert
impl StructuralPartialEq for DiveAlert
Auto Trait Implementations§
impl Freeze for DiveAlert
impl RefUnwindSafe for DiveAlert
impl Send for DiveAlert
impl Sync for DiveAlert
impl Unpin for DiveAlert
impl UnsafeUnpin for DiveAlert
impl UnwindSafe for DiveAlert
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