pub trait QueueBackend:
Send
+ Sync
+ 'static {
// Required method
fn name(&self) -> &'static str;
}Expand description
A queue backend, identified by name for boot diagnostics. The actual
runtime work happens through JobProducer (enqueue) and
JobConsumer (drain ProcessMethod and
dispatch). A backend’s module typically:
- seeds an
Arc<dyn JobProducer>in the container (so any service can inject it generically), and - contributes a
Transportwhoseserveruns the backend’s [JobConsumer] driver.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".