pub struct FdCanUSBFrame(/* private fields */);
Expand description
The FdCanUSB communicates over Serial using ascii encoded frames.
FdCanUSBFrame
is a wrapper around the ascii encoded frames.
They can be converted to and from CanFdFrame
Implementations§
Trait Implementations§
Source§impl Debug for FdCanUSBFrame
impl Debug for FdCanUSBFrame
Source§impl From<&str> for FdCanUSBFrame
impl From<&str> for FdCanUSBFrame
Source§fn from(data: &str) -> FdCanUSBFrame
fn from(data: &str) -> FdCanUSBFrame
Create a FdCanUSBFrame
from a string.
No validation is performed to check if it is a valid frame.
The frame will be validated when converting to a CanFdFrame
Source§impl From<CanFdFrame> for FdCanUSBFrame
impl From<CanFdFrame> for FdCanUSBFrame
Source§fn from(frame: CanFdFrame) -> FdCanUSBFrame
fn from(frame: CanFdFrame) -> FdCanUSBFrame
Converts to this type from the input type.
Source§impl TryFrom<FdCanUSBFrame> for CanFdFrame
impl TryFrom<FdCanUSBFrame> for CanFdFrame
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for FdCanUSBFrame
impl RefUnwindSafe for FdCanUSBFrame
impl Send for FdCanUSBFrame
impl Sync for FdCanUSBFrame
impl Unpin for FdCanUSBFrame
impl UnwindSafe for FdCanUSBFrame
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