#[non_exhaustive]pub enum DropReason {
SampleTooLarge,
FragmentSizeInvalid,
FragmentIndexZero,
FragmentIndexOutOfRange,
PayloadSizeMismatch,
InconsistentWithBuffered,
FragmentsInSubmessageInvalid,
PendingSnsCapExceeded,
AssemblerDisabled,
}Expand description
Zurueckgewiesenes-Fragment-Kategorie — nur fuer Diagnostik.
Neue Varianten ergaenzen: pflegeaendernd auch die
DropReason::as_str-Methode anpassen (exhaustive match), sonst
bricht der Build. Das ist Absicht — so wird verhindert, dass neue
Failure-Modes still in Logging-/Metrics-Pfaden verloren gehen.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SampleTooLarge
sample_size ueber Cap.
FragmentSizeInvalid
fragment_size ueber Cap oder == 0.
FragmentIndexZero
fragment_starting_num == 0 (1-basiert erwartet).
FragmentIndexOutOfRange
Fragment-Index jenseits von total_fragments.
PayloadSizeMismatch
Payload-Laenge passt nicht zu Fragment-Position.
InconsistentWithBuffered
Spaeterer DataFrag widerspricht einem schon gespeicherten
(anderes sample_size oder fragment_size).
FragmentsInSubmessageInvalid
fragments_in_submessage == 0 oder inkonsistent.
PendingSnsCapExceeded
Anzahl gleichzeitig verwalteter SNs wuerde max_pending_sns
uebersteigen — aelteste unvollstaendige SN wurde verworfen.
AssemblerDisabled
max_pending_sns == 0 — Assembler akzeptiert keine Eintraege.
Implementations§
Trait Implementations§
Source§impl Clone for DropReason
impl Clone for DropReason
Source§fn clone(&self) -> DropReason
fn clone(&self) -> DropReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DropReason
impl Debug for DropReason
Source§impl Display for DropReason
impl Display for DropReason
Source§impl PartialEq for DropReason
impl PartialEq for DropReason
Source§fn eq(&self, other: &DropReason) -> bool
fn eq(&self, other: &DropReason) -> bool
self and other values to be equal, and is used by ==.