#[non_exhaustive]pub enum BlockRouteOutcome {
Blocked {
execution_id: ExecutionId,
},
LuaRejected {
message: String,
},
}Expand description
Typed outcome of crate::engine_backend::EngineBackend::block_route.
LuaRejected captures the logical-reject case (e.g. the execution
went terminal between pick and block — eligible ZSET is left
unchanged and the caller should simply continue to the next
partition). Transport faults surface on the outer Result as
crate::engine_error::EngineError::Transport; callers that
want the pre-PR-5 “best-effort, log-and-continue” semantic wrap
the call in a match and swallow non-success variants.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Blocked
Execution moved from eligible → blocked_route successfully.
Fields
§
execution_id: ExecutionIdLuaRejected
Lua returned a non-success result (e.g. execution went
terminal between pick and block). message carries the Lua
reject code for operator visibility.
Trait Implementations§
Source§impl Clone for BlockRouteOutcome
impl Clone for BlockRouteOutcome
Source§fn clone(&self) -> BlockRouteOutcome
fn clone(&self) -> BlockRouteOutcome
Returns a duplicate of the value. Read more
1.0.0 · 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 BlockRouteOutcome
impl Debug for BlockRouteOutcome
Source§impl PartialEq for BlockRouteOutcome
impl PartialEq for BlockRouteOutcome
impl Eq for BlockRouteOutcome
impl StructuralPartialEq for BlockRouteOutcome
Auto Trait Implementations§
impl Freeze for BlockRouteOutcome
impl RefUnwindSafe for BlockRouteOutcome
impl Send for BlockRouteOutcome
impl Sync for BlockRouteOutcome
impl Unpin for BlockRouteOutcome
impl UnsafeUnpin for BlockRouteOutcome
impl UnwindSafe for BlockRouteOutcome
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