pub enum Disposition {
Continue,
Delay(Duration),
Drop,
Reject(String),
Retry(Duration),
}Expand description
The decision returned by an interceptor after inspecting a message.
Controls whether the message proceeds through the pipeline, is delayed, dropped, rejected, or bounced back with a retry hint.
Variants§
Continue
Continue to the next interceptor / deliver the message.
Delay(Duration)
Delay the message by the specified duration before proceeding. Multiple delays are cumulative.
Drop
Drop the message silently.
Reject(String)
Reject the message with a reason.
Retry(Duration)
Tell the caller to retry sending the message after the specified duration.
Unlike Delay (which holds the message in the pipeline), Retry returns
immediately to the caller with Err(RuntimeError::RetryAfter { .. }),
letting the caller decide whether and when to resend.
Inbound: The message is NOT delivered. The caller receives the retry hint and can resend after the suggested delay.
Outbound: The message is NOT sent. Same caller-visible behavior.
Use cases: circuit breakers, load shedding, backpressure signaling.