Skip to main content

Job

Trait Job 

Source
pub trait Job:
    Serialize
    + DeserializeOwned
    + Clone
    + Send
    + Sync
    + Unpin
    + 'static { }
Expand description

JSON-round-trippable + Clone (retry keeps a copy) + cross-task safe.

The marker is intentionally minimal — backends communicate jobs as JSON on the wire (the open contract), so every Job is Serialize + DeserializeOwned. Backends that prefer a binary codec internally still negotiate this JSON shape at the macro/inventory boundary.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T> Job for T
where T: Serialize + DeserializeOwned + Clone + Send + Sync + Unpin + 'static,