TaskDefinition

Trait TaskDefinition 

Source
pub trait TaskDefinition<Context>
where Context: Send,
{ type Payload: for<'de> Deserialize<'de> + Serialize + Send + 'static; // Required methods fn get_task_runner( &self, ) -> impl TaskHandler<Self::Payload, Context> + Clone + 'static; fn identifier() -> &'static str; }

Required Associated Types§

Source

type Payload: for<'de> Deserialize<'de> + Serialize + Send + 'static

Required Methods§

Source

fn get_task_runner( &self, ) -> impl TaskHandler<Self::Payload, Context> + Clone + 'static

Source

fn identifier() -> &'static str

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§