pub struct Channel {
pub bitrate: u32,
pub enabled: bool,
pub loopback: bool,
pub monitor: bool,
pub fd: bool,
pub data_bitrate: u32,
}Expand description
Configuration for a device’s CAN channel.
Fields§
§bitrate: u32Bitrate of the channel in bits/second
enabled: boolWhen true, channel should be enabled when device starts
loopback: boolWhen true, device is configured in hardware loopback mode
monitor: boolWhen true, device will not transmit on the bus.
fd: boolWhen true, CAN FD is enabled for the device
data_bitrate: u32CAN FD data bitrate of the channel in bits/second
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more