Skip to main content

Task

Trait Task 

Source
pub trait Task:
    Serialize
    + DeserializeOwned
    + Send
    + 'static {
    const NAME: &'static str;
}
Expand description

A serializable unit of work for a TaskQueue.

Redis / RabbitMQ adapters that persist and execute these types are added in a later phase.

Required Associated Constants§

Source

const NAME: &'static str

Stable task type name stored alongside the payload.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§