Struct fluvio_smartmodule::dataplane::core::link::smartmodule::SmartModuleTransformRuntimeError
source · 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§
source§impl SmartModuleTransformRuntimeError
impl SmartModuleTransformRuntimeError
pub fn new( record: &Record<RecordData>, base_offset: i64, kind: SmartModuleKind, error: Report ) -> SmartModuleTransformRuntimeError
Trait Implementations§
source§impl Clone for SmartModuleTransformRuntimeError
impl Clone for SmartModuleTransformRuntimeError
source§fn clone(&self) -> SmartModuleTransformRuntimeError
fn clone(&self) -> SmartModuleTransformRuntimeError
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 Default for SmartModuleTransformRuntimeError
impl Default for SmartModuleTransformRuntimeError
source§fn default() -> SmartModuleTransformRuntimeError
fn default() -> SmartModuleTransformRuntimeError
Returns the “default value” for a type. Read more
source§impl Error for SmartModuleTransformRuntimeError
impl Error for SmartModuleTransformRuntimeError
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 From<SmartModuleTransformRuntimeError> for LegacySmartModuleError
impl From<SmartModuleTransformRuntimeError> for LegacySmartModuleError
source§fn from(source: SmartModuleTransformRuntimeError) -> LegacySmartModuleError
fn from(source: SmartModuleTransformRuntimeError) -> LegacySmartModuleError
Converts to this type from the input type.
source§impl PartialEq<SmartModuleTransformRuntimeError> for SmartModuleTransformRuntimeError
impl PartialEq<SmartModuleTransformRuntimeError> for SmartModuleTransformRuntimeError
source§fn eq(&self, other: &SmartModuleTransformRuntimeError) -> bool
fn eq(&self, other: &SmartModuleTransformRuntimeError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.