pub struct CrsfParser { /* private fields */ }Implementations§
Source§impl CrsfParser
impl CrsfParser
pub fn new() -> Self
pub fn push_byte_raw( &mut self, byte: u8, ) -> Result<Option<RawCrsfPacket<'_>>, CrsfStreamError>
pub fn iter_packets<'a, 'b>( &'a mut self, buffer: &'b [u8], ) -> PacketIterator<'a, 'b> ⓘ
pub fn push_byte(&mut self, byte: u8) -> Result<Option<Packet>, CrsfStreamError>
pub fn reset(&mut self)
Trait Implementations§
Source§impl Debug for CrsfParser
impl Debug for CrsfParser
Auto Trait Implementations§
impl Freeze for CrsfParser
impl RefUnwindSafe for CrsfParser
impl Send for CrsfParser
impl Sync for CrsfParser
impl Unpin for CrsfParser
impl UnwindSafe for CrsfParser
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