doc: ExtractError

Signed-off-by: ekexium <ekexium@gmail.com>
This commit is contained in:
ekexium 2021-03-03 12:26:46 +08:00
parent 212dfd1f2a
commit cc1bbb7c60
1 changed files with 5 additions and 0 deletions

View File

@ -261,6 +261,11 @@ impl<P: Plan> Clone for ExtractError<P> {
}
}
/// When executed, the plan extracts errors from its inner plan, and
/// returns an `Err` wrapping the error.
///
/// The errors come from two places: `Err` from inner plans, and `Ok(response)`
/// where `response` contains unresolved errors.
#[async_trait]
impl<P: Plan> Plan for ExtractError<P>
where