embedded-nano-mesh 3.2.0

Lightweight mesh communication protocol for embedded devices
Documentation
1
2
3
4
5
6
7
8
use super::super::{types::GeneralAddressType, Packet};

impl Packet {
    /// Checks whether the packet is addressed to the given destination.
    pub fn is_destination_reached(&self, identifier: GeneralAddressType) -> bool {
        self.destination_device_identifier == identifier.into()
    }
}