(&self, join_eui: EUI64, dev_nonce: u16)
| 17 | |
| 18 | impl DevNonces { |
| 19 | pub fn contains(&self, join_eui: EUI64, dev_nonce: u16) -> bool { |
| 20 | if let Some(v) = self.0.get(&join_eui) { |
| 21 | v.contains(&dev_nonce) |
| 22 | } else { |
| 23 | false |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | pub fn insert(&mut self, join_eui: EUI64, dev_nonce: u16) { |
| 28 | self.0.entry(join_eui).or_default().push(dev_nonce) |
no test coverage detected