#[non_exhaustive]pub struct SimRunError {
kind: SimRunErrorKind,
}Expand description
Failure while driving one simulation iteration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: SimRunErrorKindImplementations§
Source§impl SimRunError
impl SimRunError
Sourcepub const fn event_budget_exceeded(count: u32) -> Self
pub const fn event_budget_exceeded(count: u32) -> Self
Creates a non-converging event-loop failure.
Sourcepub const fn handler(source: SpecRuntimeError) -> Self
pub const fn handler(source: SpecRuntimeError) -> Self
Creates a handler-dispatch failure while retaining its runtime source.
Sourcepub const fn event_count(&self) -> Option<u32>
pub const fn event_count(&self) -> Option<u32>
Returns the processed-event count for a budget failure.
Trait Implementations§
Source§impl Debug for SimRunError
impl Debug for SimRunError
Source§impl Display for SimRunError
impl Display for SimRunError
Source§impl Error for SimRunError
impl Error for SimRunError
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<SimRunError> for EngineError
impl From<SimRunError> for EngineError
Source§fn from(error: SimRunError) -> Self
fn from(error: SimRunError) -> Self
Converts to this type from the input type.
Source§impl From<SimRunError> for EngineErrorKind
impl From<SimRunError> for EngineErrorKind
Source§fn from(source: SimRunError) -> Self
fn from(source: SimRunError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SimRunError
impl RefUnwindSafe for SimRunError
impl Send for SimRunError
impl Sync for SimRunError
impl Unpin for SimRunError
impl UnsafeUnpin for SimRunError
impl UnwindSafe for SimRunError
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
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SpecConfig for T
impl<T> SpecConfig for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more