pub enum ProcessingEventType {
RecordAttempt {
sequence_number: String,
success: bool,
attempt_number: u32,
duration: Duration,
error: Option<String>,
is_final_attempt: bool,
},
BatchStart {
timestamp: SystemTime,
},
BatchMetrics {
metrics: BatchMetrics,
},
BatchError {
error: String,
duration: Duration,
},
BatchComplete {
successful_count: usize,
failed_count: usize,
duration: Duration,
},
RecordSuccess {
sequence_number: String,
checkpoint_success: bool,
},
RecordFailure {
sequence_number: String,
error: String,
},
CheckpointFailure {
sequence_number: String,
error: String,
},
ShardEvent {
event_type: ShardEventType,
details: Option<String>,
},
Iterator {
event_type: IteratorEventType,
error: Option<String>,
},
Checkpoint {
sequence_number: String,
success: bool,
error: Option<String>,
},
}
Expand description
The different types of events that can occur during processing
Variants§
RecordAttempt
Fields
BatchStart
Fields
§
timestamp: SystemTime
BatchMetrics
Fields
§
metrics: BatchMetrics
BatchError
BatchComplete
RecordSuccess
RecordFailure
CheckpointFailure
ShardEvent
Iterator
Checkpoint
Trait Implementations§
source§impl Clone for ProcessingEventType
impl Clone for ProcessingEventType
source§fn clone(&self) -> ProcessingEventType
fn clone(&self) -> ProcessingEventType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProcessingEventType
impl RefUnwindSafe for ProcessingEventType
impl Send for ProcessingEventType
impl Sync for ProcessingEventType
impl Unpin for ProcessingEventType
impl UnwindSafe for ProcessingEventType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.