pub enum SimError {
NotInitialized,
InvalidArg(String),
FfiContract(String),
InvalidSignal(String),
TypeMismatch {
name: String,
expected: SignalType,
actual: SignalType,
},
BufferTooSmall,
Internal,
UnknownStatus(u32),
}Variants§
NotInitialized
InvalidArg(String)
FfiContract(String)
InvalidSignal(String)
TypeMismatch
BufferTooSmall
Internal
UnknownStatus(u32)
Trait Implementations§
Source§impl Error for SimError
impl Error for SimError
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()
Source§impl From<SimError> for AgentSimError
impl From<SimError> for AgentSimError
Auto Trait Implementations§
impl Freeze for SimError
impl RefUnwindSafe for SimError
impl Send for SimError
impl Sync for SimError
impl Unpin for SimError
impl UnsafeUnpin for SimError
impl UnwindSafe 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