Enum nom::ConsumerState
[−]
[src]
pub enum ConsumerState { Await(usize, usize), Seek(usize, SeekFrom, usize), Incomplete, ConsumerDone, ConsumerError(u32), }
Holds the current state of the consumer
Await(consumed, needed input data size) if more data is needed
Seek(consumed, new position, needed input data size) if the consumer must move back or forth
Incomplete if there is not enough data but not enough information for Await or Seek
ConsumerDone if the consumer does not need anymore data to be parsed
ConsumerError(error code) when something went wrong
Variants
Await | |
Seek | |
Incomplete | |
ConsumerDone | |
ConsumerError |