/// Represents a basic CAN Frame containing the frame's id and data
#[derive(Debug, Copy, Clone)]pubstructFrame{pubid:u32,
pubdata: [u8; 8],
}implFrame{/// Creates a new frame with the given id and data
pubfnnew(id:u32, data: [u8; 8])-> Frame{
Frame { id, data }}pubfnto_string(&self)-> String{format!("{:?}",&self)}}