pub enum DeviceModel {
Pro2,
Duo,
}Expand description
Which RODECaster a fullSync came from. Detected from the SYSTEM node;
selects the per-model Fader layout.
Variants§
Pro2
RODECaster Pro II: 6 physical + 3 virtual faders.
Duo
RODECaster Duo: 4 physical + 5 virtual faders.
Implementations§
Source§impl DeviceModel
impl DeviceModel
Sourcepub fn from_board_type(board_type: i64) -> Option<Self>
pub fn from_board_type(board_type: i64) -> Option<Self>
Map the SYSTEM.boardType integer (0 = Pro II, 1 = Duo). Returns
None for an unrecognized board so DeviceModel::detect can fall back
to the name.
Sourcepub fn from_system_name(system_name: &str) -> Self
pub fn from_system_name(system_name: &str) -> Self
Map the SYSTEM.systemName string: contains “duo” (case-insensitive) =>
Duo, else Pro II. Firmware 1.6.8 omits this property; newer firmware
includes it, which is why DeviceModel::detect prefers boardType.
Trait Implementations§
Source§impl Clone for DeviceModel
impl Clone for DeviceModel
impl Copy for DeviceModel
Source§impl Debug for DeviceModel
impl Debug for DeviceModel
Source§impl Display for DeviceModel
impl Display for DeviceModel
impl Eq for DeviceModel
Source§impl Hash for DeviceModel
impl Hash for DeviceModel
Source§impl PartialEq for DeviceModel
impl PartialEq for DeviceModel
impl StructuralPartialEq for DeviceModel
Auto Trait Implementations§
impl Freeze for DeviceModel
impl RefUnwindSafe for DeviceModel
impl Send for DeviceModel
impl Sync for DeviceModel
impl Unpin for DeviceModel
impl UnsafeUnpin for DeviceModel
impl UnwindSafe for DeviceModel
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