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, Self::Error>
fn receive(&mut self, clock: &mut SystemClock) -> Result<Frame, 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 moreAuto 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more