pub struct Parser { /* private fields */ }
Implementations
sourceimpl Parser
impl Parser
sourcepub fn parse_slice(&mut self, data: &[u8]) -> Result<VEDirectParse, VEError>
pub fn parse_slice(&mut self, data: &[u8]) -> Result<VEDirectParse, VEError>
Parses victron energy protocol packet, if not complete returns VEError::NeedMoreData and stores its state
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more