pub enum SimError {
ConfigParse(Error),
Config(String),
Server(ServerError),
Store(StoreError),
}Expand description
Errors that can occur during simulator operations.
Variants§
ConfigParse(Error)
YAML configuration parsing error.
Config(String)
Invalid configuration value.
Server(ServerError)
Underlying server error.
Store(StoreError)
In-memory store setup error.
Trait Implementations§
Source§impl Error for SimError
impl Error for SimError
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<ServerError> for SimError
impl From<ServerError> for SimError
Source§fn from(source: ServerError) -> Self
fn from(source: ServerError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for SimError
impl From<StoreError> for SimError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SimError
impl !UnwindSafe for SimError
impl Freeze for SimError
impl Send for SimError
impl Sync for SimError
impl Unpin for SimError
impl UnsafeUnpin for SimError
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