#[non_exhaustive]pub enum EventKind {
GasSwitch {
gas_mix: usize,
},
Bookmark {
heading: Option<u32>,
},
Vendor {
code: u32,
value: u32,
},
}Expand description
The kinds of Event.
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.
GasSwitch
The breathing gas changed.
Fields
§
gas_mix: usizeIndex into Dive::gas_mixes.
Bookmark
The diver marked this moment.
Vendor
A device event with no common meaning.
Trait Implementations§
impl Copy for EventKind
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Forget for EventKind
impl Freeze for EventKind
impl Move for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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