pub struct SmartModuleInitRuntimeError {
pub hint: String,
}Expand description
A type used to capture and serialize errors from within a SmartModule
Fields§
§hint: StringError hint: meant for users, not for code
Implementations§
source§impl SmartModuleInitRuntimeError
impl SmartModuleInitRuntimeError
pub fn new(error: Report) -> SmartModuleInitRuntimeError
Trait Implementations§
source§impl Clone for SmartModuleInitRuntimeError
impl Clone for SmartModuleInitRuntimeError
source§fn clone(&self) -> SmartModuleInitRuntimeError
fn clone(&self) -> SmartModuleInitRuntimeError
Returns a copy 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 SmartModuleInitRuntimeError
impl Debug for SmartModuleInitRuntimeError
source§impl Default for SmartModuleInitRuntimeError
impl Default for SmartModuleInitRuntimeError
source§fn default() -> SmartModuleInitRuntimeError
fn default() -> SmartModuleInitRuntimeError
Returns the “default value” for a type. Read more
source§impl Error for SmartModuleInitRuntimeError
impl Error for SmartModuleInitRuntimeError
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()
source§impl PartialEq<SmartModuleInitRuntimeError> for SmartModuleInitRuntimeError
impl PartialEq<SmartModuleInitRuntimeError> for SmartModuleInitRuntimeError
source§fn eq(&self, other: &SmartModuleInitRuntimeError) -> bool
fn eq(&self, other: &SmartModuleInitRuntimeError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.