pub struct Interrupted {
pub by: Stop,
pub steps: u64,
}Expand description
An operation that was stopped, by the caller and not by its input. The model is as it was before the call.
Fields§
§by: StopWhat stopped it.
steps: u64The steps taken before the stop. For Stop::Budget it is the
budget; the same input and budget stop at the same count on every
platform and with parallel on or off.
Trait Implementations§
Source§impl Clone for Interrupted
impl Clone for Interrupted
impl Copy for Interrupted
Source§impl Debug for Interrupted
impl Debug for Interrupted
Source§impl Display for Interrupted
impl Display for Interrupted
impl Eq for Interrupted
Source§impl Error for Interrupted
impl Error for Interrupted
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 Hash for Interrupted
impl Hash for Interrupted
Source§impl PartialEq for Interrupted
impl PartialEq for Interrupted
impl StructuralPartialEq for Interrupted
Auto Trait Implementations§
impl Freeze for Interrupted
impl RefUnwindSafe for Interrupted
impl Send for Interrupted
impl Sync for Interrupted
impl Unpin for Interrupted
impl UnsafeUnpin for Interrupted
impl UnwindSafe for Interrupted
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.