nvml_wrapper/enums/
event.rs

1#[cfg(feature = "serde")]
2use serde_derive::{Deserialize, Serialize};
3
4/// A simple wrapper used to encode the `Unknown` value into the type system.
5///
6/// `Unknown` would otherwise be a value of 999 (if it were not an enum
7/// variant).
8#[derive(Debug, Clone, Eq, PartialEq, Hash)]
9#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
10pub enum XidError {
11    /// Contains the value of the error.
12    Value(u64),
13    /// If the error is unknown.
14    Unknown,
15}