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
neededcan hold the amount of additional data the parser would need to decideerr_f: produces the error when in "complete" mode
fn is_streaming() -> boolIndicates whether the data is in streaming mode or not
Implementors
impl IsStreaming for Completeimpl IsStreaming for Streaming