pub enum MiddlewareResult {
Acknowledged,
Continue,
}Expand description
Result of middleware processing.
This enum provides explicit control flow for middleware chains, allowing middleware to signal whether they’ve handled acknowledgment or whether processing should continue normally.
Variants§
Acknowledged
Message has been acknowledged by this middleware. The pool should NOT attempt to ack/nack again.
Continue
Continue with normal processing flow. The pool should handle ack/nack based on the result.
Implementations§
Source§impl MiddlewareResult
impl MiddlewareResult
Sourcepub fn is_acknowledged(&self) -> bool
pub fn is_acknowledged(&self) -> bool
Returns true if the message was already acknowledged.
Sourcepub fn is_continue(&self) -> bool
pub fn is_continue(&self) -> bool
Returns true if processing should continue normally.
Trait Implementations§
Source§impl Clone for MiddlewareResult
impl Clone for MiddlewareResult
Source§fn clone(&self) -> MiddlewareResult
fn clone(&self) -> MiddlewareResult
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 moreSource§impl Debug for MiddlewareResult
impl Debug for MiddlewareResult
impl Eq for MiddlewareResult
Source§impl PartialEq for MiddlewareResult
impl PartialEq for MiddlewareResult
Source§fn eq(&self, other: &MiddlewareResult) -> bool
fn eq(&self, other: &MiddlewareResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MiddlewareResult
Auto Trait Implementations§
impl Freeze for MiddlewareResult
impl RefUnwindSafe for MiddlewareResult
impl Send for MiddlewareResult
impl Sync for MiddlewareResult
impl Unpin for MiddlewareResult
impl UnsafeUnpin for MiddlewareResult
impl UnwindSafe for MiddlewareResult
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