stm32/can: Add more derives for CAN Envelope

This commit is contained in:
chemicstry 2023-07-31 10:32:17 +03:00
parent 780569c08a
commit ad85beb677

View File

@ -19,7 +19,7 @@ use crate::{interrupt, peripherals, Peripheral};
/// Contains CAN frame and additional metadata.
///
/// Timestamp is available if `time` feature is enabled.
#[derive(Debug)]
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub struct Envelope {
#[cfg(feature = "time")]