pub enum ErrorPolicy {
LogAndContinue,
Reject,
}Expand description
Controls how interceptors behave when serialization or deserialization fails.
Passed to ContextOutboundInterceptor::new and
ContextInboundInterceptor::new to configure error handling.
Variants§
LogAndContinue
Log a warning and deliver the message without propagated context. This is the default.
Reject
Reject the message via Disposition::Reject.
Trait Implementations§
Source§impl Clone for ErrorPolicy
impl Clone for ErrorPolicy
Source§fn clone(&self) -> ErrorPolicy
fn clone(&self) -> ErrorPolicy
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 ErrorPolicy
Source§impl Debug for ErrorPolicy
impl Debug for ErrorPolicy
Source§impl Default for ErrorPolicy
impl Default for ErrorPolicy
Source§fn default() -> ErrorPolicy
fn default() -> ErrorPolicy
Returns the “default value” for a type. Read more
impl Eq for ErrorPolicy
Source§impl PartialEq for ErrorPolicy
impl PartialEq for ErrorPolicy
impl StructuralPartialEq for ErrorPolicy
Auto Trait Implementations§
impl Freeze for ErrorPolicy
impl RefUnwindSafe for ErrorPolicy
impl Send for ErrorPolicy
impl Sync for ErrorPolicy
impl Unpin for ErrorPolicy
impl UnsafeUnpin for ErrorPolicy
impl UnwindSafe for ErrorPolicy
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§impl<F> ContextFutureExt for F
impl<F> ContextFutureExt for F
Source§fn with(self, store: ContextStore) -> WithContext<Self>
fn with(self, store: ContextStore) -> WithContext<Self>
Wrap this future with a specific
ContextStore. Read moreSource§fn attach(self, snap: ContextSnapshot) -> WithContext<Self>
fn attach(self, snap: ContextSnapshot) -> WithContext<Self>
Attach a
ContextSnapshot as the active store for this future. Read moreSource§fn fork(self) -> WithContext<Self>
fn fork(self) -> WithContext<Self>
Fork the current context and wrap this future with the forked child. Read more
Source§fn capture(self) -> WithContext<Self>
fn capture(self) -> WithContext<Self>
Capture the current context and wrap this future with it. Read more