Skip to main content

RuntimeWarning

Enum RuntimeWarning 

Source
#[non_exhaustive]
pub enum RuntimeWarning { UninitializedTemp { slot: u16, name: String, }, }
Expand description

A non-fatal condition the VM reported while a story was running (issue #3354, RULED 2026-09-01 option C).

Warnings never interrupt play — that is the point of the ruling: what plays in Inky plays in brink. They accumulate on the flow that produced them and are drained by the host (crate::Story::take_runtime_warnings, crate::FlowInstance::take_runtime_warnings), which decides whether to print them (the CLI player does), surface them in a panel (the studio does), or ignore them (a shipped game).

Accumulation is capped at RUNTIME_WARNING_CAP per flow between drains: a loop that reads an unset temp on every iteration would otherwise grow this list without bound.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

UninitializedTemp

A ~ temp slot was read before its declaring statement ran, so the read produced ink’s missing-variable default instead of faulting on the next operator.

The compile-time half of the same story is brink_ir::DiagnosticCode::E193, which names the read and the declaration in the editor before the author plays. Message text mirrors the C# reference’s own wording, since matching what an author already recognizes from Inky is the point.

Fields

§slot: u16

The call frame’s temp slot that was read.

§name: String

The variable as the author spelled it, already quoted ('n') when the story carries a DebugInfo section to resolve the slot through; temp slot 3 when it does not (debug info is opt-in at codegen — EmitOptions::emit_debug_info).

Trait Implementations§

Source§

impl Clone for RuntimeWarning

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for RuntimeWarning

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for RuntimeWarning

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for RuntimeWarning

Source§

impl Error for RuntimeWarning

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for RuntimeWarning

Source§

fn eq(&self, other: &RuntimeWarning) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for RuntimeWarning

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.