pub enum ApplyError {
NotFound,
InvalidState {
state: String,
},
Store(String),
Audit(AuditError),
}Expand description
Errors returned by the plan-apply path.
Variants§
NotFound
The plan row was not found in the store. Either the id is wrong or the plan has been purged.
InvalidState
The plan was already in a terminal state (applied / reverted /
failed) — apply is idempotent only from projected.
Store(String)
Store-side failure. The mutation may or may not have committed — callers should treat as “needs investigation” rather than retrying blindly.
Audit(AuditError)
Audit row failed to write AFTER the store mutation committed. The plan IS applied; the chain entry was not. Caller should re-attempt the audit emission out-of-band rather than re-applying.
Trait Implementations§
Source§impl Debug for ApplyError
impl Debug for ApplyError
Source§impl Display for ApplyError
impl Display for ApplyError
Source§impl Error for ApplyError
impl Error for ApplyError
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()
Source§impl From<AuditError> for ApplyError
impl From<AuditError> for ApplyError
Source§fn from(source: AuditError) -> Self
fn from(source: AuditError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ApplyError
impl !UnwindSafe for ApplyError
impl Freeze for ApplyError
impl Send for ApplyError
impl Sync for ApplyError
impl Unpin for ApplyError
impl UnsafeUnpin for ApplyError
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