#[non_exhaustive]#[repr(i32)]pub enum SmartModuleInternalError {
UnknownError = -1,
DecodingBaseInput = -11,
DecodingRecords = -22,
EncodingOutput = -33,
ParsingExtraParams = -44,
UndefinedRightRecord = -55,
InitParamsNotFound = -60,
}Expand description
Indicates an internal error from within a SmartModule.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownError = -1
DecodingBaseInput = -11
DecodingRecords = -22
EncodingOutput = -33
ParsingExtraParams = -44
UndefinedRightRecord = -55
InitParamsNotFound = -60
Trait Implementations§
Source§impl Clone for SmartModuleInternalError
impl Clone for SmartModuleInternalError
Source§fn clone(&self) -> SmartModuleInternalError
fn clone(&self) -> SmartModuleInternalError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmartModuleInternalError
impl Debug for SmartModuleInternalError
Source§impl Decoder for SmartModuleInternalError
impl Decoder for SmartModuleInternalError
Source§impl Default for SmartModuleInternalError
impl Default for SmartModuleInternalError
Source§impl Display for SmartModuleInternalError
impl Display for SmartModuleInternalError
Source§impl Encoder for SmartModuleInternalError
impl Encoder for SmartModuleInternalError
Source§impl Error for SmartModuleInternalError
impl Error for SmartModuleInternalError
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 PartialEq for SmartModuleInternalError
impl PartialEq for SmartModuleInternalError
Source§impl TryFrom<i32> for SmartModuleInternalError
impl TryFrom<i32> for SmartModuleInternalError
impl StructuralPartialEq for SmartModuleInternalError
Auto Trait Implementations§
impl Freeze for SmartModuleInternalError
impl RefUnwindSafe for SmartModuleInternalError
impl Send for SmartModuleInternalError
impl Sync for SmartModuleInternalError
impl Unpin for SmartModuleInternalError
impl UnwindSafe for SmartModuleInternalError
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