Struct prae::MutationError [−][src]
pub struct MutationError<G: Guard> { pub inner: G::Error, pub old_value: G::Target, pub new_value: G::Target, }
Expand description
An error occured during mutation.
Fields
inner: G::Error
Original error in case of calling define!
with validate
or just a
string in case of ensure
.
old_value: G::Target
The value before mutation.
new_value: G::Target
The value that caused the error.
Implementations
Get inner error.
Trait Implementations
Auto Trait Implementations
impl<G> RefUnwindSafe for MutationError<G> where
<G as Guard>::Error: RefUnwindSafe,
<G as Guard>::Target: RefUnwindSafe,
impl<G> UnwindSafe for MutationError<G> where
<G as Guard>::Error: UnwindSafe,
<G as Guard>::Target: UnwindSafe,