Enum nom::ConsumerState [] [src]

pub enum ConsumerState {
    Await(usizeusize),
    Seek(usizeSeekFromusize),
    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(usizeusize)Seek(usizeSeekFromusize)IncompleteConsumerDoneConsumerError(u32)

Trait Implementations

impl Copy for ConsumerState
[src]

impl Clone for ConsumerState
[src]

fn clone(&self) -> ConsumerState

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Eq for ConsumerState
[src]

impl PartialEq for ConsumerState
[src]

fn eq(&self, __arg_0: &ConsumerState) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &ConsumerState) -> bool

This method tests for !=.

impl Debug for ConsumerState
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.