Enum ReduceError
pub enum ReduceError {
UnknownCommandId(String),
UnknownIntentId(String),
MissingEnvelopeFields,
RiskDecisionUnknownIntent(String),
ExecutionCommandUnknownIntent(String),
DuplicateIntentId(String),
DuplicateCommandId(String),
RiskStateMismatch {
actual: RiskStopState,
claimed: RiskStopState,
},
IllegalRiskTransition {
from: RiskStopState,
to: RiskStopState,
},
VelocityGateMismatch {
actual: VelocityGateLevel,
claimed: VelocityGateLevel,
},
InvalidFillQty(Decimal),
}Expand description
Recoverable errors produced by the reducer.
The caller decides whether to log-and-continue or abort replay.
Variants§
UnknownCommandId(String)
UnknownIntentId(String)
MissingEnvelopeFields
RiskDecisionUnknownIntent(String)
ExecutionCommandUnknownIntent(String)
DuplicateIntentId(String)
DuplicateCommandId(String)
RiskStateMismatch
IllegalRiskTransition
VelocityGateMismatch
InvalidFillQty(Decimal)
Trait Implementations§
§impl Clone for ReduceError
impl Clone for ReduceError
§fn clone(&self) -> ReduceError
fn clone(&self) -> ReduceError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ReduceError
impl Debug for ReduceError
§impl Display for ReduceError
impl Display for ReduceError
§impl Error for ReduceError
impl Error for ReduceError
1.30.0§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<ReduceError> for ReplayError
impl From<ReduceError> for ReplayError
§fn from(source: ReduceError) -> Self
fn from(source: ReduceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReduceError
impl RefUnwindSafe for ReduceError
impl Send for ReduceError
impl Sync for ReduceError
impl Unpin for ReduceError
impl UnsafeUnpin for ReduceError
impl UnwindSafe for ReduceError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)