pub enum BrinkCallError {
NotAFlow,
ProgramNotLoaded,
LineTablesNotLoaded,
FunctionNotFound(String),
UnknownQuery(String),
AsyncExternalUnsupported(String),
QueryFailed(String),
SystemParamInvalid(String),
Runtime(RuntimeError),
}Expand description
Errors from an engine→ink call (call_ink_function).
Variants§
NotAFlow
The entity isn’t a fulfilled flow (missing BrinkFlow/BrinkProgram/
BrinkLocale/BrinkContext).
ProgramNotLoaded
The flow’s program asset isn’t loaded.
LineTablesNotLoaded
The flow’s line-tables asset isn’t loaded.
FunctionNotFound(String)
No function with this name exists in the program.
UnknownQuery(String)
The function called a world-access external with no registered query binding (and no in-story fallback).
AsyncExternalUnsupported(String)
The function called an async external (bind_brink_async /
bind_brink_task), which can’t resolve in a single &mut World pass.
Drive such stories via the step_one playback path + the plugin’s
resolve_pending_externals resolver instead.
QueryFailed(String)
A query binding’s system failed to run.
SystemParamInvalid(String)
The SystemState snapshot of flow components + assets + bindings
failed to validate against the world (e.g. a required resource,
like Assets<ProgramAsset>, isn’t present — the plugin wasn’t added).
Runtime(RuntimeError)
The runtime raised an error during evaluation.
Trait Implementations§
Source§impl Debug for BrinkCallError
impl Debug for BrinkCallError
Source§impl Display for BrinkCallError
impl Display for BrinkCallError
Source§impl Error for BrinkCallError
impl Error for BrinkCallError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<RuntimeError> for BrinkCallError
impl From<RuntimeError> for BrinkCallError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Auto Trait Implementations§
impl Freeze for BrinkCallError
impl RefUnwindSafe for BrinkCallError
impl Send for BrinkCallError
impl Sync for BrinkCallError
impl Unpin for BrinkCallError
impl UnsafeUnpin for BrinkCallError
impl UnwindSafe for BrinkCallError
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
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.