pub enum Transmitter {
Ble([u8; 6]),
Wifi([u8; 6]),
Other(u64),
}Expand description
Who sent a frame. Receivers key aircraft by the radio address, because that is the only thing every frame of one transmitter shares before its Basic ID has been heard.
Variants§
Ble([u8; 6])
Bluetooth advertiser address.
Wifi([u8; 6])
Wi-Fi transmitter address.
Other(u64)
Anything else (for example a MAVLink system ID), chosen by the caller.
Trait Implementations§
Source§impl Clone for Transmitter
impl Clone for Transmitter
impl Copy for Transmitter
Source§impl Debug for Transmitter
impl Debug for Transmitter
Source§impl<'de> Deserialize<'de> for Transmitter
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Transmitter
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Transmitter
Source§impl Hash for Transmitter
impl Hash for Transmitter
Source§impl Ord for Transmitter
impl Ord for Transmitter
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Transmitter
impl PartialEq for Transmitter
Source§impl PartialOrd for Transmitter
impl PartialOrd for Transmitter
Source§impl Serialize for Transmitter
Available on crate feature serde only.
impl Serialize for Transmitter
Available on crate feature
serde only.impl StructuralPartialEq for Transmitter
Auto Trait Implementations§
impl Forget for Transmitter
impl Freeze for Transmitter
impl Move for Transmitter
impl RefUnwindSafe for Transmitter
impl Send for Transmitter
impl Sync for Transmitter
impl Unpin for Transmitter
impl UnsafeUnpin for Transmitter
impl UnwindSafe for Transmitter
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