pub enum AttemptOutcomeError {
SuccessWithError {
error: String,
},
NonSuccessWithoutError {
result: AttemptResultKind,
},
NonSuccessWithOutput {
result: AttemptResultKind,
},
}Expand description
Typed validation error for AttemptOutcome reconstruction from raw parts.
Variants§
SuccessWithError
A Success or Suspended outcome was provided with a non-None error field.
NonSuccessWithoutError
A Failure or Timeout outcome was provided without an error field.
Fields
§
result: AttemptResultKindThe result kind that requires an error detail.
NonSuccessWithOutput
A Failure or Timeout outcome was provided with output bytes.
Fields
§
result: AttemptResultKindThe result kind that cannot carry output.
Trait Implementations§
Source§impl Clone for AttemptOutcomeError
impl Clone for AttemptOutcomeError
Source§fn clone(&self) -> AttemptOutcomeError
fn clone(&self) -> AttemptOutcomeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttemptOutcomeError
impl Debug for AttemptOutcomeError
Source§impl Display for AttemptOutcomeError
impl Display for AttemptOutcomeError
Source§impl Error for AttemptOutcomeError
impl Error for AttemptOutcomeError
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()
Source§impl PartialEq for AttemptOutcomeError
impl PartialEq for AttemptOutcomeError
impl Eq for AttemptOutcomeError
impl StructuralPartialEq for AttemptOutcomeError
Auto Trait Implementations§
impl Freeze for AttemptOutcomeError
impl RefUnwindSafe for AttemptOutcomeError
impl Send for AttemptOutcomeError
impl Sync for AttemptOutcomeError
impl Unpin for AttemptOutcomeError
impl UnsafeUnpin for AttemptOutcomeError
impl UnwindSafe for AttemptOutcomeError
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