Skip to main content

AsyncCapabilityHandler

Trait AsyncCapabilityHandler 

Source
pub trait AsyncCapabilityHandler {
    // Required method
    fn start(
        &mut self,
        method: &str,
        input: UiValue,
    ) -> Result<TaskWork, String>;
}

Required Methods§

Source

fn start(&mut self, method: &str, input: UiValue) -> Result<TaskWork, String>

Build one-shot background work after input validation.

§Errors

Returns a human-readable setup error before a task is spawned.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§