pub struct LinuxCan { /* private fields */ }
Expand description
An adapter between SocketCAN and the canadensis frame format
Implementations§
Trait Implementations§
Source§impl ReceiveDriver<SystemClock> for LinuxCan
impl ReceiveDriver<SystemClock> for LinuxCan
Source§fn receive(
&mut self,
clock: &mut SystemClock,
) -> Result<Frame<Microseconds64>, Self::Error>
fn receive( &mut self, clock: &mut SystemClock, ) -> Result<Frame<Microseconds64>, Self::Error>
Attempts to receive a frame without blocking
Source§fn apply_filters<S>(&mut self, local_node: Option<CanNodeId>, subscriptions: S)where
S: IntoIterator<Item = Subscription>,
fn apply_filters<S>(&mut self, local_node: Option<CanNodeId>, subscriptions: S)where
S: IntoIterator<Item = Subscription>,
Sets up frame reception filters to accept only frames matching the provided subscriptions Read more
Source§fn apply_accept_all(&mut self)
fn apply_accept_all(&mut self)
Sets up frame reception filters to accept all incoming frames
Source§impl TransmitDriver<SystemClock> for LinuxCan
impl TransmitDriver<SystemClock> for LinuxCan
Source§fn try_reserve(&mut self, _frames: usize) -> Result<(), OutOfMemoryError>
fn try_reserve(&mut self, _frames: usize) -> Result<(), OutOfMemoryError>
Attempts to reserve space to transmit
frames
additional frames Read moreSource§fn transmit(
&mut self,
frame: Frame<Microseconds64>,
clock: &mut SystemClock,
) -> Result<Option<Frame<Microseconds64>>, Self::Error>
fn transmit( &mut self, frame: Frame<Microseconds64>, clock: &mut SystemClock, ) -> Result<Option<Frame<Microseconds64>>, Self::Error>
Attempts to send a frame without blocking Read more
Auto Trait Implementations§
impl Freeze for LinuxCan
impl RefUnwindSafe for LinuxCan
impl Send for LinuxCan
impl Sync for LinuxCan
impl Unpin for LinuxCan
impl UnwindSafe for LinuxCan
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