1.0.8 |
|
---|---|
1.0.6 |
|
1.0.2 |
|
0.2.0 |
|
0.1.0 |
|
#4 in #j1939
Used in 2 crates
81KB
2K
SLoC
CAN type define that based from can-types crate
This crate is deprecated. All code is move to isopt-rs
CanMessage
example
use std::fmt::Display;
pub struct CanMessage {
// fields of message declare
}
impl Frame for CanMessage {
type Channel = u8;
// impl methods that defined in `Frame` trait
}
impl Display for CanMessage {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
<dyn Frame<Channel=u8> as Display>::fmt(self, f)
}
}
AsyncCanDevice
andSyncCanDevice
example
Dependencies
~2.5–8.5MB
~71K SLoC