Struct fluvio::dataplane::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: 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§
source§impl SmartModuleTransformRuntimeError
impl SmartModuleTransformRuntimeError
pub fn new( record: &Record, 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 FluvioError
impl From<SmartModuleTransformRuntimeError> for FluvioError
source§fn from(source: SmartModuleTransformRuntimeError) -> Self
fn from(source: SmartModuleTransformRuntimeError) -> Self
Converts to this type from the input type.
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 for SmartModuleTransformRuntimeError
impl PartialEq 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 ==
.impl Eq for SmartModuleTransformRuntimeError
impl StructuralPartialEq for SmartModuleTransformRuntimeError
Auto Trait Implementations§
impl !Freeze for SmartModuleTransformRuntimeError
impl RefUnwindSafe for SmartModuleTransformRuntimeError
impl Send for SmartModuleTransformRuntimeError
impl Sync for SmartModuleTransformRuntimeError
impl Unpin for SmartModuleTransformRuntimeError
impl UnwindSafe for SmartModuleTransformRuntimeError
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.