pub enum LoopError {
ConvergenceFailure {
iterations: usize,
},
TimeoutError {
duration_ns: u128,
},
LipschitzViolation {
measured: f64,
limit: f64,
},
InvalidPolicy {
message: String,
},
QuantumError {
message: String,
},
ConsciousnessError {
message: String,
},
MathError {
message: String,
},
MemoryError {
message: String,
},
ConcurrencyError {
message: String,
},
SimdError {
message: String,
},
}Expand description
Errors that can occur during strange loop execution
Variants§
ConvergenceFailure
Loop failed to converge within the specified iteration limit
TimeoutError
Loop exceeded the maximum allowed execution time
LipschitzViolation
Lipschitz constant violation detected
InvalidPolicy
Invalid policy parameters
QuantumError
Quantum state error
ConsciousnessError
Consciousness calculation error
MathError
Mathematical operation error
MemoryError
Memory allocation error
ConcurrencyError
Concurrency error
SimdError
SIMD operation error
Implementations§
Source§impl LoopError
impl LoopError
Sourcepub fn convergence_failure(iterations: usize) -> Self
pub fn convergence_failure(iterations: usize) -> Self
Create a new convergence failure error
Sourcepub fn lipschitz_violation(measured: f64, limit: f64) -> Self
pub fn lipschitz_violation(measured: f64, limit: f64) -> Self
Create a new Lipschitz violation error
Sourcepub fn invalid_policy(message: impl Into<String>) -> Self
pub fn invalid_policy(message: impl Into<String>) -> Self
Create a new invalid policy error
Sourcepub fn quantum_error(message: impl Into<String>) -> Self
pub fn quantum_error(message: impl Into<String>) -> Self
Create a new quantum error
Sourcepub fn consciousness_error(message: impl Into<String>) -> Self
pub fn consciousness_error(message: impl Into<String>) -> Self
Create a new consciousness error
Sourcepub fn math_error(message: impl Into<String>) -> Self
pub fn math_error(message: impl Into<String>) -> Self
Create a new math error
Sourcepub fn memory_error(message: impl Into<String>) -> Self
pub fn memory_error(message: impl Into<String>) -> Self
Create a new memory error
Sourcepub fn concurrency_error(message: impl Into<String>) -> Self
pub fn concurrency_error(message: impl Into<String>) -> Self
Create a new concurrency error
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Check if this is a recoverable error
Trait Implementations§
Source§impl Error for LoopError
impl Error for LoopError
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()
impl StructuralPartialEq for LoopError
Auto Trait Implementations§
impl Freeze for LoopError
impl RefUnwindSafe for LoopError
impl Send for LoopError
impl Sync for LoopError
impl Unpin for LoopError
impl UnwindSafe for LoopError
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,
Source§impl<T> Pointable for T
impl<T> Pointable 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.