pub struct RuntimeWarning {
pub code: WarningCode,
pub flow_name: String,
pub backend: String,
pub fallback_mode: FallbackMode,
pub step_name: Option<String>,
pub declared_output: String,
pub message: String,
pub timestamp_ms: u64,
}Expand description
One runtime warning entry. Immutable once minted. Surfaces on
axon.complete.warnings[*] (wire) and
replay.runtime_warnings[*] (audit).
§Required fields (per D5 + plan vivo §1)
code— closed-catalogWarningCode.flow_name— the flow whose streaming declaration fell back.backend— the backend name (post-autoresolution) that was attempted.fallback_mode— theFallbackModetag identifying WHY.step_name— optional step name when the warning is step-scoped (e.g. one step has an unsupported feature, the others are fine).Nonefor flow-scoped warnings.declared_output— the adopter-sourceoutput:declaration (e.g."Stream<Token>") that triggered the streaming expectation. Empty when the warning is not tied to a specific declaration.message— human-readable summary. Equalscode.message()by default; adopters can include context-specific detail (e.g. the exactIRFlowNodevariant that triggeredUnsupportedFlowShape).
Fields§
§code: WarningCode§flow_name: String§backend: String§fallback_mode: FallbackMode§step_name: Option<String>§declared_output: String§message: String§timestamp_ms: u64Unix-millis timestamp when the warning was minted.
Monotonic within a flow execution; multiple warnings
preserve insertion order via the carrying Vec.
Implementations§
Source§impl RuntimeWarning
impl RuntimeWarning
Sourcepub fn streaming_not_supported(
flow_name: impl Into<String>,
backend: impl Into<String>,
fallback_mode: FallbackMode,
detail: impl Into<String>,
) -> Self
pub fn streaming_not_supported( flow_name: impl Into<String>, backend: impl Into<String>, fallback_mode: FallbackMode, detail: impl Into<String>, ) -> Self
Construct a W002 streaming-not-supported warning with the canonical message.
Trait Implementations§
Source§impl Clone for RuntimeWarning
impl Clone for RuntimeWarning
Source§fn clone(&self) -> RuntimeWarning
fn clone(&self) -> RuntimeWarning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuntimeWarning
impl Debug for RuntimeWarning
Source§impl<'de> Deserialize<'de> for RuntimeWarning
impl<'de> Deserialize<'de> for RuntimeWarning
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RuntimeWarning
impl RefUnwindSafe for RuntimeWarning
impl Send for RuntimeWarning
impl Sync for RuntimeWarning
impl Unpin for RuntimeWarning
impl UnsafeUnpin for RuntimeWarning
impl UnwindSafe for RuntimeWarning
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.