Skip to main content

ps_promise/methods/abortable/
outcome.rs

1/// Best-effort success hint from [`AbortHandle::abort`](crate::AbortHandle::abort).
2///
3/// An abort request appears to be live, so a still-pending promise is expected
4/// to reject with [`TaskFailure::Aborted`](crate::TaskFailure::Aborted) on its
5/// next poll. Like all of
6/// [`AbortHandle::abort`](crate::AbortHandle::abort)'s output, this is advisory
7/// rather than authoritative under concurrent settlement.
8#[derive(Debug, Clone, Copy, Default, Hash, PartialEq, Eq, PartialOrd, Ord)]
9pub struct PromiseAborted;
10
11/// Best-effort error hint from [`AbortHandle::abort`](crate::AbortHandle::abort).
12///
13/// The promise appears to be no longer abortable, having settled on its own or
14/// through an earlier abort, or been dropped. Like all of
15/// [`AbortHandle::abort`](crate::AbortHandle::abort)'s output, this is advisory
16/// rather than authoritative under concurrent settlement.
17#[derive(Debug, Clone, Copy, Default, Hash, PartialEq, Eq, PartialOrd, Ord)]
18pub struct PromiseSettled;