MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / contains

Method contains

chirpstack/src/storage/fields/dev_nonces.rs:19–25  ·  view source on GitHub ↗
(&self, join_eui: EUI64, dev_nonce: u16)

Source from the content-addressed store, hash-verified

17
18impl 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)

Callers 15

setupFunction · 0.80
set_tx_infoMethod · 0.80
set_tx_info_relayedMethod · 0.80
_update_uplink_listMethod · 0.80
_update_filter_listMethod · 0.80
filter_mac_commandsFunction · 0.80
log_downlink_frameMethod · 0.80
set_tx_infoMethod · 0.80
set_tx_info_relayedMethod · 0.80
private_key_to_pkcs8Function · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected