Skip to main content

QueueDeclarations

Trait QueueDeclarations 

Source
pub trait QueueDeclarations: Send + Sync {
    // Required method
    fn declaration_for(&self, task_queue: &str) -> QueueDeclaration;
}
Expand description

A reader over the deployed queue declarations.

Required Methods§

Source

fn declaration_for(&self, task_queue: &str) -> QueueDeclaration

Answer for one task queue. Implementations never fail: an unreadable catalog is QueueDeclaration::Unknown, reported by the implementation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§