Skip to main content

CallDynamicChecked

Trait CallDynamicChecked 

Source
pub trait CallDynamicChecked: ExchangeBase {
    // Provided method
    fn call_dynamic_checked(
        &mut self,
        name: Value,
        args: Vec<Value>,
    ) -> impl Future<Output = Value> + Send { ... }
}
Expand description

Wraps a call_dynamic re-entry that MUST resolve. call_dynamic_base’s _ arm returns Value::Null for a name that is neither a dispatch arm nor an implicit-API endpoint — fine for an optional probe, but a dynamic re-entry from fetchPaginatedCall* / fetchWebEndpoint would then hand the caller an empty page instead of an error. That arm records the miss on internals.dynamic_dispatch_miss; this raises it as a loud NotSupported, the way call_method used to fail, so a dispatch regression surfaces as an error rather than as null data (review on #30385).

Provided Methods§

Source

fn call_dynamic_checked( &mut self, name: Value, args: Vec<Value>, ) -> impl Future<Output = Value> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§