Trait Parser

Source
pub trait Parser {
    // Required methods
    fn parse(&mut self, buffer: &[u8], response: &mut Vec<u8>) -> usize;
    fn parser_lookahead(&self) -> usize;
}

Required Methods§

Source

fn parse(&mut self, buffer: &[u8], response: &mut Vec<u8>) -> usize

Returns the last byte parsed. The next parsing loop will again contain all data that was not parsed.

Source

fn parser_lookahead(&self) -> usize

Implementors§