pub trait FailedWithContinuationExt {
// Required methods
fn extract_continuation(
&self,
) -> Option<Arc<dyn Continuation + Send + Sync + 'static>>;
fn has_continuation(&self) -> bool;
}
Expand description
Extension trait for extracting FailedWithContinuation from anyhow::Error
This trait provides methods to detect and extract continuation tasks from the type-erased anyhow::Error system.
Required Methods§
Sourcefn extract_continuation(
&self,
) -> Option<Arc<dyn Continuation + Send + Sync + 'static>>
fn extract_continuation( &self, ) -> Option<Arc<dyn Continuation + Send + Sync + 'static>>
Extract a continuation task if this error contains one
Returns the continuation task if the error is a FailedWithContinuation, None otherwise.
Sourcefn has_continuation(&self) -> bool
fn has_continuation(&self) -> bool
Check if this error has a continuation