pub trait Payload: Send + 'static {
// Required methods
fn new(ctx: &Context<'_>) -> Self;
fn invoke(
&mut self,
ctx: &Context<'_>,
args: &Args,
payload: ROption<&PayloadBox>,
);
}Required Methods§
fn new(ctx: &Context<'_>) -> Self
fn invoke( &mut self, ctx: &Context<'_>, args: &Args, payload: ROption<&PayloadBox>, )
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".