pub trait TaskHandler<Input, Frntend, Bkend, Md>: OptPartialEq + OptDebug {
// Required method
fn handle(self, input: Input) -> impl FrontendEffect<Frntend, Bkend, Md>;
}Expand description
Represents the handler for a task output.
Required Methods§
fn handle(self, input: Input) -> impl FrontendEffect<Frntend, Bkend, Md>
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.
Implementors§
impl<Input, Frntend, Bkend, Md> TaskHandler<Input, Frntend, Bkend, Md> for NoOpHandler
impl<T, F, Input, Frntend, Bkend, Md> TaskHandler<Input, Frntend, Bkend, Md> for F
Available on non-crate feature
task-equality and non-crate feature task-debug only.Allow closures to be accepted as TaskHandlers if equality and debug features are not required.