pub enum OrderReplayError {
EmptyInput,
WrongFirstEvent,
InvalidInitialization {
source: OrderError,
},
ApplyFailed {
source: OrderError,
},
}Expand description
Error returned when OrderAny::from_events cannot replay order events.
Variants§
EmptyInput
No events were supplied.
WrongFirstEvent
The first event was not an initialization event.
InvalidInitialization
The initialization event could not be converted into an order.
Fields
§
source: OrderErrorThe source order conversion error.
ApplyFailed
A later event could not be applied to the initialized order.
Fields
§
source: OrderErrorThe source event application error.
Trait Implementations§
Source§impl Debug for OrderReplayError
impl Debug for OrderReplayError
Source§impl Display for OrderReplayError
impl Display for OrderReplayError
Source§impl Error for OrderReplayError
impl Error for OrderReplayError
Source§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 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for OrderReplayError
impl RefUnwindSafe for OrderReplayError
impl Send for OrderReplayError
impl Sync for OrderReplayError
impl Unpin for OrderReplayError
impl UnsafeUnpin for OrderReplayError
impl UnwindSafe for OrderReplayError
Blanket Implementations§
impl<T> Allocation for T
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