pub struct Bt4502Codec {}Implementations§
Source§impl Bt4502Codec
impl Bt4502Codec
pub fn get_frames_iter(data: &[u8]) -> impl Iterator<Item = &[u8]>
Trait Implementations§
Source§impl WireCodec for Bt4502Codec
impl WireCodec for Bt4502Codec
const MESSAGE_DELIMITER: Option<char> = None
type Frames = Vec<Vec<u8, MAX_BT4502_MESSAGE_LENGTH>, MAX_BT4502_FRAMES_COUNT>
type IncomingFrame = Vec<u8, MAX_BT4502_MESSAGE_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 Bt4502Codec
impl RefUnwindSafe for Bt4502Codec
impl Send for Bt4502Codec
impl Sync for Bt4502Codec
impl Unpin for Bt4502Codec
impl UnsafeUnpin for Bt4502Codec
impl UnwindSafe for Bt4502Codec
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