pub struct SmartModuleTransformRuntimeError {
pub hint: String,
pub offset: i64,
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: i64The 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
sourceimpl SmartModuleTransformRuntimeError
impl SmartModuleTransformRuntimeError
pub fn new(
record: &Record<RecordData>,
base_offset: i64,
kind: SmartModuleKind,
error: Report
) -> SmartModuleTransformRuntimeError
Trait Implementations
sourceimpl Clone for SmartModuleTransformRuntimeError
impl Clone for SmartModuleTransformRuntimeError
sourcefn clone(&self) -> SmartModuleTransformRuntimeError
fn clone(&self) -> SmartModuleTransformRuntimeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Default for SmartModuleTransformRuntimeError
impl Default for SmartModuleTransformRuntimeError
sourcefn default() -> SmartModuleTransformRuntimeError
fn default() -> SmartModuleTransformRuntimeError
Returns the “default value” for a type. Read more
sourceimpl Error for SmartModuleTransformRuntimeError
impl Error for SmartModuleTransformRuntimeError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<SmartModuleTransformRuntimeError> for LegacySmartModuleError
impl From<SmartModuleTransformRuntimeError> for LegacySmartModuleError
sourcefn from(source: SmartModuleTransformRuntimeError) -> LegacySmartModuleError
fn from(source: SmartModuleTransformRuntimeError) -> LegacySmartModuleError
Converts to this type from the input type.
sourceimpl PartialEq<SmartModuleTransformRuntimeError> for SmartModuleTransformRuntimeError
impl PartialEq<SmartModuleTransformRuntimeError> for SmartModuleTransformRuntimeError
sourcefn eq(&self, other: &SmartModuleTransformRuntimeError) -> bool
fn eq(&self, other: &SmartModuleTransformRuntimeError) -> bool
impl Eq for SmartModuleTransformRuntimeError
impl StructuralEq for SmartModuleTransformRuntimeError
impl StructuralPartialEq for SmartModuleTransformRuntimeError
Auto Trait Implementations
impl RefUnwindSafe for SmartModuleTransformRuntimeError
impl Send for SmartModuleTransformRuntimeError
impl Sync for SmartModuleTransformRuntimeError
impl Unpin for SmartModuleTransformRuntimeError
impl UnwindSafe for SmartModuleTransformRuntimeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more