Enum sapio_base::simp::SIMPError
source · pub enum SIMPError {
AlreadyDefined(Value),
SerializationError(Error),
}
Expand description
Errors that may come up when working with SIMPs
Variants§
AlreadyDefined(Value)
If this SIMP is already present. Implementors may wish to handle or ignore this error if it is not an issue, but usually it is a bug. todo: Mergeable SIMPs may merge one another
SerializationError(Error)
If the error was because a SIMP could not be serialized.
If this error ever happens, your SIMP is poorly designed most likely!
Trait Implementations§
source§impl Error for SIMPError
impl Error for SIMPError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SIMPError
impl Send for SIMPError
impl Sync for SIMPError
impl Unpin for SIMPError
impl !UnwindSafe for SIMPError
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