mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-02-21 09:21:45 +00:00
Add Clone and Copy derive to Prefix types.
This commit is contained in:
parent
cfadb9c78a
commit
f513cacab5
@ -10,6 +10,7 @@ use serde::{
|
||||
pub mod error;
|
||||
|
||||
/// Configuration.
|
||||
#[derive(Default, Clone)]
|
||||
pub struct Filters {
|
||||
/// DevAddr prefixes.
|
||||
pub dev_addr_prefixes: Vec<DevAddrPrefix>,
|
||||
@ -99,6 +100,7 @@ pub fn matches(phy_payload: &[u8], config: &Filters) -> bool {
|
||||
}
|
||||
|
||||
/// DevAddr prefix.
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct DevAddrPrefix([u8; 4], u32);
|
||||
|
||||
impl DevAddrPrefix {
|
||||
@ -194,6 +196,7 @@ impl<'de> Visitor<'de> for DevAddrPrefixVisitor {
|
||||
}
|
||||
|
||||
/// JoinEUI prefix.
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct EuiPrefix([u8; 8], u32);
|
||||
|
||||
impl EuiPrefix {
|
||||
|
Loading…
x
Reference in New Issue
Block a user