pub enum Cause {
ControlC,
Parent,
Converged,
ExceededMaxIterations,
}Expand description
Causes for termination of a solver
Variants§
ControlC
The caller has manually terminated the process with ctrl-C
Parent
A parent thread had terminated the process using a [tokio::CancellationToken]
Converged
The solver has converged to the requested tolerance
ExceededMaxIterations
The solver has exceeded the maximum allowable iterations
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cause
impl<'de> Deserialize<'de> for Cause
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Cause
impl Eq for Cause
impl StructuralPartialEq for Cause
Auto Trait Implementations§
impl Freeze for Cause
impl RefUnwindSafe for Cause
impl Send for Cause
impl Sync for Cause
impl Unpin for Cause
impl UnwindSafe for Cause
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