Enum nakadion::ProcessingStatus[][src]

pub enum ProcessingStatus {
    Processed(Option<usize>),
    Failed {
        reason: String,
    },
}

This struct must be returned after processing a batch to tell nakadion how to continue.

Variants

The cursor of the just processed batch can be committed to make progrss on the stream.

Optionally the number of processed events can be provided to help with deciding on when to commit the cursor.

The number of events should be the number of events that were in the batch.

Processing failed. Do not commit the cursor. This always ends in the streaming being aborted for the current stream.

A reason must be given which will be logged.

Fields of Failed

Methods

impl ProcessingStatus
[src]

Cursor can be committed and no information on how many events were processed is given.

Cursor can be committed and a hint on how many events were processed is given.

Processing events failed with the given reason.

Trait Implementations

impl Debug for ProcessingStatus
[src]

Formats the value using the given formatter. Read more

impl Clone for ProcessingStatus
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ProcessingStatus
[src]

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

This method tests for !=.

impl Eq for ProcessingStatus
[src]

Auto Trait Implementations