pub trait EvalCachedAsync:
Debug
+ Default
+ Send
+ Sync
+ 'static {
type Args: Debug + Any + Send + Sync;
const NAME: &str;
const TYP: LazyLock<FnType>;
// Required methods
fn prepare_args(&mut self, cached: &CachedVals) -> Option<Self::Args>;
fn eval(args: Self::Args) -> impl Future<Output = Value> + Send;
}Required Associated Constants§
Required Associated Types§
Required Methods§
fn prepare_args(&mut self, cached: &CachedVals) -> Option<Self::Args>
fn eval(args: Self::Args) -> impl Future<Output = Value> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.