pub trait Function<Res>:
Sync
+ Send
+ 'staticwhere
Res: FunctionResult,{
// Required method
fn call(&self, kwargs: Kwargs, state: &State<'_>) -> Res;
// Provided method
fn is_safe(&self) -> bool { ... }
}Expand description
The function function type definition
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".