#[repr(u8)]pub enum NetworkCommand {
Show 13 variants
ConnectionRequest(ButtonState),
FamilyRequest,
FamilySet(NetworkFamily),
JoinDenied(),
GetFamily(),
Family(NetworkFamily),
GetSubfamily(),
Subfamily(NetworkSubFamily),
SubfamilySet(NetworkSubFamily),
GetExtendedFamily(),
ExtendedFamily {
family: NetworkFamily,
subfamily: NetworkSubFamily,
},
ExtendedFamilySet {
family: NetworkFamily,
subfamily: NetworkSubFamily,
},
ResetLongPressTiming(),
}Expand description
@typedef HWNetWorkCommandType @param {number} CONNECTION_REQUEST 0x02 @param {number} FAMILY_REQUEST 0x03 @param {number} FAMILY_SET 0x04 @param {number} JOIN_DENIED 0x05 @param {number} GET_FAMILY 0x06 @param {number} FAMILY 0x07 @param {number} GET_SUBFAMILY 0x08 @param {number} SUBFAMILY 0x09 @param {number} SUBFAMILY_SET 0x0A @param {number} GET_EXTENDED_FAMILY 0x0B @param {number} EXTENDED_FAMILY 0x0C @param {number} EXTENDED_FAMILY_SET 0x0D @param {number} RESET_LONG_PRESS_TIMING 0x0E @description https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#h-w-network-command-type
Variants§
ConnectionRequest(ButtonState)
FamilyRequest
FamilySet(NetworkFamily)
JoinDenied()
GetFamily()
Family(NetworkFamily)
GetSubfamily()
Subfamily(NetworkSubFamily)
SubfamilySet(NetworkSubFamily)
GetExtendedFamily()
ExtendedFamily
ExtendedFamilySet
ResetLongPressTiming()
Implementations§
Trait Implementations§
Source§impl Clone for NetworkCommand
impl Clone for NetworkCommand
Source§fn clone(&self) -> NetworkCommand
fn clone(&self) -> NetworkCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NetworkCommand
Source§impl Debug for NetworkCommand
impl Debug for NetworkCommand
impl Eq for NetworkCommand
Source§impl PartialEq for NetworkCommand
impl PartialEq for NetworkCommand
impl StructuralPartialEq for NetworkCommand
Auto Trait Implementations§
impl Freeze for NetworkCommand
impl RefUnwindSafe for NetworkCommand
impl Send for NetworkCommand
impl Sync for NetworkCommand
impl Unpin for NetworkCommand
impl UnsafeUnpin for NetworkCommand
impl UnwindSafe for NetworkCommand
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