#[non_exhaustive]pub enum Incomplete {
Suspended,
Cancelled(Cancelled),
Exhausted,
}Expand description
The error type returned by an algorithm when the result is not (yet) available.
The result can be unavailable because the computation was canceled (Cancelled) or because
the algorithm has not finished computing but reached one of its pre-defined suspend points.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Suspended
The computation has reached a suspend point and can be resumed.
Cancelled(Cancelled)
The computation was canceled by an external cancellation token.
Exhausted
The computation has already completed and cannot produce more results.
This is returned when a crate::Computable or crate::Generatable is polled
after it has already produced its final result.
Trait Implementations§
Source§impl Clone for Incomplete
impl Clone for Incomplete
Source§fn clone(&self) -> Incomplete
fn clone(&self) -> Incomplete
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 Incomplete
impl Debug for Incomplete
Source§impl Display for Incomplete
impl Display for Incomplete
Source§impl Error for Incomplete
impl Error for Incomplete
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 From<Cancelled> for Incomplete
impl From<Cancelled> for Incomplete
Source§impl Hash for Incomplete
impl Hash for Incomplete
Source§impl PartialEq for Incomplete
impl PartialEq for Incomplete
impl Eq for Incomplete
impl StructuralPartialEq for Incomplete
Auto Trait Implementations§
impl Freeze for Incomplete
impl RefUnwindSafe for Incomplete
impl Send for Incomplete
impl Sync for Incomplete
impl Unpin for Incomplete
impl UnwindSafe for Incomplete
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