(b: &[u8])
| 417 | } |
| 418 | |
| 419 | pub fn from_slice(b: &[u8]) -> Self { |
| 420 | // For LoRaWAN 1.1, this payload must be first decrypted before it can be parsed. |
| 421 | // Therefore, the decoding into separate mac-commands is handled by decode_from_raw. |
| 422 | MACCommandSet(vec![MACCommand::Raw(b.to_vec())]) |
| 423 | } |
| 424 | |
| 425 | pub fn push(&mut self, m: MACCommand) { |
| 426 | self.0.push(m); |
nothing calls this directly
no test coverage detected