pub enum Line<'a> {
Ok,
Rcv(CanFdFrame),
Err(&'a [u8]),
Other(&'a [u8]),
}Expand description
One parsed line of the fdcanusb protocol, as classified by
parse_line.
Variants§
Ok
An OK acknowledgment.
Rcv(CanFdFrame)
A received CAN frame (rcv ...).
Err(&'a [u8])
An error report from the device (ERR ...).
Other(&'a [u8])
Anything else, including empty and malformed rcv lines.
Trait Implementations§
impl<'a> StructuralPartialEq for Line<'a>
Auto Trait Implementations§
impl<'a> Freeze for Line<'a>
impl<'a> RefUnwindSafe for Line<'a>
impl<'a> Send for Line<'a>
impl<'a> Sync for Line<'a>
impl<'a> Unpin for Line<'a>
impl<'a> UnsafeUnpin for Line<'a>
impl<'a> UnwindSafe for Line<'a>
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