pub struct RNodeDecoder { /* private fields */ }Expand description
Streaming RNode KISS decoder.
Handles KISS framing, KISS escape sequences, multi-byte command responses, and subinterface data routing.
Implementations§
Source§impl RNodeDecoder
impl RNodeDecoder
pub fn new() -> Self
Sourcepub fn selected_index(&self) -> u8
pub fn selected_index(&self) -> u8
Current selected subinterface index.
Sourcepub fn feed(&mut self, bytes: &[u8]) -> Vec<RNodeEvent>
pub fn feed(&mut self, bytes: &[u8]) -> Vec<RNodeEvent>
Feed raw bytes and return decoded events.
Auto Trait Implementations§
impl Freeze for RNodeDecoder
impl RefUnwindSafe for RNodeDecoder
impl Send for RNodeDecoder
impl Sync for RNodeDecoder
impl Unpin for RNodeDecoder
impl UnsafeUnpin for RNodeDecoder
impl UnwindSafe for RNodeDecoder
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
Source§impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
impl<T> InterfaceConfigData for Twhere
T: Send + 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more