pub struct UsbCodec {}Implementations§
Trait Implementations§
Source§impl WireCodec for UsbCodec
impl WireCodec for UsbCodec
const MESSAGE_DELIMITER: Option<char> = None
type Frames = Vec<Vec<u8, MAX_USB_FRAME_LENGTH>, MAX_USB_FRAMES_COUNT>
type IncomingFrame = Vec<u8, MAX_USB_FRAME_LENGTH>
fn get_frames(data: &[u8]) -> Result<Self::Frames, CodecError>
fn decode_frame(data: &[u8]) -> Result<(Self::IncomingFrame, usize), CodecError>
Auto Trait Implementations§
impl Freeze for UsbCodec
impl RefUnwindSafe for UsbCodec
impl Send for UsbCodec
impl Sync for UsbCodec
impl Unpin for UsbCodec
impl UnsafeUnpin for UsbCodec
impl UnwindSafe for UsbCodec
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