pub enum InvertError {
ReusedEnvelope,
NotInvertible {
index: usize,
op: &'static str,
},
MissingCurrent {
index: usize,
id: Id128,
},
Invalidated {
index: usize,
id: Id128,
field: &'static str,
},
InverseUpdate {
index: usize,
reason: String,
},
}Expand description
A refusal to stage an inverse; no partially inverted change-set is returned.
Operation indexes are zero-based indexes in the original forward op-list.
Variants§
ReusedEnvelope
A revert must have its own provenance rather than reuse the forward envelope.
NotInvertible
This format cannot yet represent the exact inverse of this operation.
MissingCurrent
The caller did not supply the target record in the required substrate map.
Fields
Invalidated
The working record no longer matches a field required by the forward operation.
Fields
InverseUpdate
The existing checked update constructor refused the swapped patch/preimage.
Trait Implementations§
Source§impl Debug for InvertError
impl Debug for InvertError
Source§impl Display for InvertError
impl Display for InvertError
Source§impl Error for InvertError
impl Error for InvertError
1.30.0 · 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 InvertError
impl RefUnwindSafe for InvertError
impl Send for InvertError
impl Sync for InvertError
impl Unpin for InvertError
impl UnsafeUnpin for InvertError
impl UnwindSafe for InvertError
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