#[non_exhaustive]pub struct MalformedDelivery {
pub raw_subject: String,
pub reason: MalformedReason,
pub stream_sequence: Option<u64>,
/* private fields */
}Expand description
A malformed record. Log the reason and call Self::term to prevent retries.
Nothing, including malformed records, is acknowledged automatically.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.raw_subject: String§reason: MalformedReason§stream_sequence: Option<u64>Absent only when the server supplied malformed JetStream metadata.
Implementations§
Auto Trait Implementations§
impl !Freeze for MalformedDelivery
impl !RefUnwindSafe for MalformedDelivery
impl !UnwindSafe for MalformedDelivery
impl Forget for MalformedDelivery
impl Move for MalformedDelivery
impl Send for MalformedDelivery
impl Sync for MalformedDelivery
impl Unpin for MalformedDelivery
impl UnsafeUnpin for MalformedDelivery
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