pub enum FinishError {
Incomplete {
elapsed: Duration,
source: CompletionError,
},
Terminal(TerminalError),
}Expand description
Failure from checked finish after the operation has been consumed.
Variants§
Incomplete
Completion validation failed before terminal emission.
Fields
§
source: CompletionErrorFirst completion invariant that failed.
Terminal(TerminalError)
A terminal emission was attempted and failed permanently.
Implementations§
Source§impl FinishError
impl FinishError
Sourcepub const fn elapsed(&self) -> Duration
pub const fn elapsed(&self) -> Duration
Returns elapsed operation time sampled by the finish attempt.
Sourcepub const fn completion_error(&self) -> Option<&CompletionError>
pub const fn completion_error(&self) -> Option<&CompletionError>
Returns the completion error when validation failed.
Trait Implementations§
Source§impl Debug for FinishError
impl Debug for FinishError
Source§impl Display for FinishError
impl Display for FinishError
Source§impl Error for FinishError
impl Error for FinishError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the nested completion or terminal error.
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 !RefUnwindSafe for FinishError
impl !UnwindSafe for FinishError
impl Freeze for FinishError
impl Send for FinishError
impl Sync for FinishError
impl Unpin for FinishError
impl UnsafeUnpin for FinishError
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