pub struct SmartModuleRuntimeError {
pub hint: String,
pub offset: Offset,
pub kind: SmartModuleKind,
pub record_key: Option<RecordData>,
pub record_value: RecordData,
}Expand description
A type used to capture and serialize errors from within a SmartModule
Fields§
§hint: StringError hint: meant for users, not for code
offset: OffsetThe offset of the Record that had a runtime error
kind: SmartModuleKindThe type of SmartModule that had a runtime error
record_key: Option<RecordData>The Record key that caused this error
record_value: RecordDataThe Record value that caused this error
Implementations§
Trait Implementations§
Source§impl Clone for SmartModuleRuntimeError
impl Clone for SmartModuleRuntimeError
Source§fn clone(&self) -> SmartModuleRuntimeError
fn clone(&self) -> SmartModuleRuntimeError
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 SmartModuleRuntimeError
impl Debug for SmartModuleRuntimeError
Source§impl Decoder for SmartModuleRuntimeError
impl Decoder for SmartModuleRuntimeError
Source§impl Default for SmartModuleRuntimeError
impl Default for SmartModuleRuntimeError
Source§fn default() -> SmartModuleRuntimeError
fn default() -> SmartModuleRuntimeError
Returns the “default value” for a type. Read more
Source§impl Display for SmartModuleRuntimeError
impl Display for SmartModuleRuntimeError
Source§impl Encoder for SmartModuleRuntimeError
impl Encoder for SmartModuleRuntimeError
Source§impl Error for SmartModuleRuntimeError
impl Error for SmartModuleRuntimeError
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<SmartModuleRuntimeError> for LegacySmartModuleError
impl From<SmartModuleRuntimeError> for LegacySmartModuleError
Source§fn from(source: SmartModuleRuntimeError) -> Self
fn from(source: SmartModuleRuntimeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SmartModuleRuntimeError
impl PartialEq for SmartModuleRuntimeError
impl StructuralPartialEq for SmartModuleRuntimeError
Auto Trait Implementations§
impl !Freeze for SmartModuleRuntimeError
impl RefUnwindSafe for SmartModuleRuntimeError
impl Send for SmartModuleRuntimeError
impl Sync for SmartModuleRuntimeError
impl Unpin for SmartModuleRuntimeError
impl UnwindSafe for SmartModuleRuntimeError
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