#[non_exhaustive]#[repr(u8)]pub enum PacketAddress {
Show 24 variants
Broadcast = 0,
Cloud = 14,
Usb = 16,
Bluetooth = 18,
WifiReceiver = 19,
VideoReceiver = 20,
TbsCorePnpPro = 128,
Esc1 = 144,
Esc2 = 145,
Esc3 = 146,
Esc4 = 147,
Esc5 = 148,
Esc6 = 149,
Esc7 = 150,
Esc8 = 151,
CurrentSensor = 192,
Gps = 194,
TbsBlackbox = 196,
FlightController = 200,
RaceTag = 204,
VTX = 206,
Handset = 234,
Receiver = 236,
Transmitter = 238,
}Expand description
Represents all CRSF packet addresses
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Broadcast = 0
Cloud = 14
Usb = 16
Bluetooth = 18
WifiReceiver = 19
VideoReceiver = 20
TbsCorePnpPro = 128
Esc1 = 144
Esc2 = 145
Esc3 = 146
Esc4 = 147
Esc5 = 148
Esc6 = 149
Esc7 = 150
Esc8 = 151
CurrentSensor = 192
Gps = 194
TbsBlackbox = 196
FlightController = 200
RaceTag = 204
VTX = 206
Handset = 234
Receiver = 236
Transmitter = 238
Trait Implementations§
Source§impl Clone for PacketAddress
impl Clone for PacketAddress
Source§fn clone(&self) -> PacketAddress
fn clone(&self) -> PacketAddress
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 PacketAddress
impl Debug for PacketAddress
Source§impl PartialEq for PacketAddress
impl PartialEq for PacketAddress
Source§impl TryFrom<u8> for PacketAddress
impl TryFrom<u8> for PacketAddress
Source§type Error = TryFromPrimitiveError<PacketAddress>
type Error = TryFromPrimitiveError<PacketAddress>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PacketAddress
impl TryFromPrimitive for PacketAddress
const NAME: &'static str = "PacketAddress"
type Primitive = u8
type Error = TryFromPrimitiveError<PacketAddress>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PacketAddress
impl Eq for PacketAddress
impl StructuralPartialEq for PacketAddress
Auto Trait Implementations§
impl Freeze for PacketAddress
impl RefUnwindSafe for PacketAddress
impl Send for PacketAddress
impl Sync for PacketAddress
impl Unpin for PacketAddress
impl UnwindSafe for PacketAddress
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