pub enum Eddystone {
Uid {
tx_power: i8,
namespace: [u8; 10],
instance: [u8; 6],
},
Url {
tx_power: i8,
url: String,
},
Tlm {
battery_mv: Option<u16>,
temperature: Option<f64>,
adv_count: u32,
uptime: f64,
},
EncryptedTlm {
etlm: [u8; 12],
salt: u16,
mic: u16,
},
Eid {
tx_power: i8,
eid: [u8; 8],
},
}Expand description
An Eddystone frame.
Variants§
Uid
Eddystone-UID (0x00).
Fields
Url
Eddystone-URL (0x10).
Tlm
Eddystone-TLM (0x20), version 0: telemetry in the clear.
Fields
EncryptedTlm
Eddystone-TLM version 1 (encrypted, for EID beacons).
Eid
Eddystone-EID (0x30): an ephemeral identifier.
Trait Implementations§
impl StructuralPartialEq for Eddystone
Auto Trait Implementations§
impl Freeze for Eddystone
impl RefUnwindSafe for Eddystone
impl Send for Eddystone
impl Sync for Eddystone
impl Unpin for Eddystone
impl UnsafeUnpin for Eddystone
impl UnwindSafe for Eddystone
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