pub struct CanRx<'d> { /* private fields */ }Expand description
FDCAN Rx only Instance
Implementations§
Source§impl<'d> CanRx<'d>
impl<'d> CanRx<'d>
Sourcepub async fn read(&mut self) -> Result<Envelope, BusError>
pub async fn read(&mut self) -> Result<Envelope, BusError>
Returns the next received message frame
Sourcepub fn blocking_read(&mut self) -> Result<Envelope, BusError>
pub fn blocking_read(&mut self) -> Result<Envelope, BusError>
Blocking read frame.
If no CAN frame is in the RX buffer, this will wait until there is one.
Sourcepub async fn read_fd(&mut self) -> Result<FdEnvelope, BusError>
pub async fn read_fd(&mut self) -> Result<FdEnvelope, BusError>
Returns the next received message frame
Sourcepub fn blocking_read_fd(&mut self) -> Result<FdEnvelope, BusError>
pub fn blocking_read_fd(&mut self) -> Result<FdEnvelope, BusError>
Blocking read FD frame.
If no CAN FD frame is in the RX buffer, this will wait until there is one.
Auto Trait Implementations§
impl<'d> Freeze for CanRx<'d>
impl<'d> !RefUnwindSafe for CanRx<'d>
impl<'d> Send for CanRx<'d>
impl<'d> Sync for CanRx<'d>
impl<'d> Unpin for CanRx<'d>
impl<'d> !UnwindSafe for CanRx<'d>
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