pub enum TransformErrorPolicy {
Reject,
PassThrough,
}Expand description
Action taken on a message that fails to transform.
Variants§
Reject
Reject the message: non-retryable failure on output, dropped from the batch on input.
PassThrough
Forward the original payload unchanged with the error recorded in metadata.
Trait Implementations§
Source§impl Clone for TransformErrorPolicy
impl Clone for TransformErrorPolicy
Source§fn clone(&self) -> TransformErrorPolicy
fn clone(&self) -> TransformErrorPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransformErrorPolicy
Source§impl Debug for TransformErrorPolicy
impl Debug for TransformErrorPolicy
Source§impl Default for TransformErrorPolicy
impl Default for TransformErrorPolicy
Source§fn default() -> TransformErrorPolicy
fn default() -> TransformErrorPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransformErrorPolicy
impl<'de> Deserialize<'de> for TransformErrorPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TransformErrorPolicy
Source§impl PartialEq for TransformErrorPolicy
impl PartialEq for TransformErrorPolicy
Source§impl Serialize for TransformErrorPolicy
impl Serialize for TransformErrorPolicy
impl StructuralPartialEq for TransformErrorPolicy
Auto Trait Implementations§
impl Freeze for TransformErrorPolicy
impl RefUnwindSafe for TransformErrorPolicy
impl Send for TransformErrorPolicy
impl Sync for TransformErrorPolicy
impl Unpin for TransformErrorPolicy
impl UnsafeUnpin for TransformErrorPolicy
impl UnwindSafe for TransformErrorPolicy
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