realsense_rust/kind/persistence_control.rs
1//! The enumeration of persistence controls.
2
3use num_derive::{FromPrimitive, ToPrimitive};
4
5/// An enumeration of the various persistence controls used in processing blocks.
6#[allow(missing_docs)]
7#[repr(usize)]
8#[derive(FromPrimitive, ToPrimitive, Debug, Clone, Copy, PartialEq, Eq, Hash)]
9pub enum PersistenceControl {
10 /// Persistence control is disabled
11 Disabled = 0,
12 /// Valid 8 out of 8
13 Valid8OutOf8 = 1,
14 /// Valid 2 out of 3
15 Valid2OutOf3 = 2,
16 /// Valid 2 out of 4
17 Valid2OutOf4 = 3,
18 /// Valid 2 out of 8
19 Valid2OutOf8 = 4,
20 /// Valid 1 out of 2
21 Valid1OutOf2 = 5,
22 /// Valid 1 out of 5
23 Valid1OutOf5 = 6,
24 /// Valid 1 out of 8
25 Valid1OutOf8 = 7,
26 /// Indefinite
27 Indefinitely = 8,
28}