Trait IsStreaming

pub trait IsStreaming

Specifies the behaviour when a parser encounters an error that could be due to partial ata

Required Methods

fn incomplete<E, F: FnOnce() -> E>(needed: Needed, err_f: F) -> Err<E>

called by parsers on partial data errors

  • needed can hold the amount of additional data the parser would need to decide
  • err_f: produces the error when in "complete" mode
fn is_streaming() -> bool

Indicates whether the data is in streaming mode or not

Implementors