Struct fluvio::dataplane::smartmodule::SmartModuleRuntimeError
source · [−]pub struct SmartModuleRuntimeError {
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: String
Error hint: meant for users, not for code
offset: i64
The offset of the Record that had a runtime error
kind: SmartModuleKind
The type of SmartModule that had a runtime error
record_key: Option<RecordData>
The Record key that caused this error
record_value: RecordData
The Record value that caused this error
Implementations
pub fn new(
record: &Record<RecordData>,
base_offset: i64,
kind: SmartModuleKind,
error: Report
) -> SmartModuleRuntimeError
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SmartModuleRuntimeError
impl Send for SmartModuleRuntimeError
impl Sync for SmartModuleRuntimeError
impl Unpin for SmartModuleRuntimeError
impl UnwindSafe for SmartModuleRuntimeError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more