pub enum SimulationError {
SimulationShutdown,
InvalidState(String),
IoError(String),
}Expand description
Errors that can occur during simulation operations.
Variants§
SimulationShutdown
The simulation has been shut down and is no longer accessible.
InvalidState(String)
The simulation is in an invalid state.
IoError(String)
An I/O error occurred during simulation.
Trait Implementations§
Source§impl Clone for SimulationError
impl Clone for SimulationError
Source§fn clone(&self) -> SimulationError
fn clone(&self) -> SimulationError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimulationError
impl Debug for SimulationError
Source§impl Display for SimulationError
impl Display for SimulationError
Source§impl Error for SimulationError
impl Error for SimulationError
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for SimulationError
impl From<Error> for SimulationError
Source§fn from(err: Error) -> SimulationError
fn from(err: Error) -> SimulationError
Converts to this type from the input type.
Source§impl PartialEq for SimulationError
impl PartialEq for SimulationError
impl Eq for SimulationError
impl StructuralPartialEq for SimulationError
Auto Trait Implementations§
impl Freeze for SimulationError
impl RefUnwindSafe for SimulationError
impl Send for SimulationError
impl Sync for SimulationError
impl Unpin for SimulationError
impl UnwindSafe for SimulationError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)