socketcan-alt 0.1.0

Rust binding for SocketCAN
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::sys;
use std::fmt;

#[derive(Clone, Copy)]
pub struct ErrorFrame(pub(super) sys::can_frame);

impl fmt::Debug for ErrorFrame {
    fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
        fmt.debug_struct("ErrorFrame").finish()
    }
}

#[cfg(test)]
mod tests;