#[repr(u8)]pub enum PeripheralType {
Unknown = 0,
SoldierSensor = 1,
FixedSensor = 2,
Relay = 3,
}Expand description
Type of peripheral device
Variants§
Unknown = 0
Unknown/unspecified
SoldierSensor = 1
Soldier-worn sensor (e.g., M5Stack Core2)
FixedSensor = 2
Fixed/stationary sensor
Relay = 3
Mesh relay only (no sensors)
Implementations§
Trait Implementations§
Source§impl Clone for PeripheralType
impl Clone for PeripheralType
Source§fn clone(&self) -> PeripheralType
fn clone(&self) -> PeripheralType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PeripheralType
impl Debug for PeripheralType
Source§impl Default for PeripheralType
impl Default for PeripheralType
Source§fn default() -> PeripheralType
fn default() -> PeripheralType
Returns the “default value” for a type. Read more
Source§impl PartialEq for PeripheralType
impl PartialEq for PeripheralType
impl Copy for PeripheralType
impl Eq for PeripheralType
impl StructuralPartialEq for PeripheralType
Auto Trait Implementations§
impl Freeze for PeripheralType
impl RefUnwindSafe for PeripheralType
impl Send for PeripheralType
impl Sync for PeripheralType
impl Unpin for PeripheralType
impl UnwindSafe for PeripheralType
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