pub enum Outcome {
Attempt,
Ok,
Error(String),
}Expand description
The result of one mutation step, replacing a stringly-typed result plus a
loosely-coupled error. The error payload exists only on Outcome::Error,
so a record can never claim success while carrying an error (or vice versa).
Variants§
Attempt
The mutation is about to run (audited before any side effect).
Ok
The mutation completed successfully.
Error(String)
The mutation failed; the payload is the error detail.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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