pub trait TaskTableProvider:
Send
+ Sync
+ 'static {
// Required methods
fn schema_name(&self) -> &str;
fn tasks_table(&self) -> &str;
fn tasks_ready_view(&self) -> &str;
fn tasks_notify_fn(&self) -> &str;
fn tasks_notify_done_fn(&self) -> &str;
fn tasks_queue_name(&self) -> &str;
// Provided methods
fn tasks_queue_done_name(&self) -> String { ... }
fn tasks_table_full_name(&self) -> String { ... }
fn tasks_ready_view_full_name(&self) -> String { ... }
fn tasks_notify_fn_full_name(&self) -> String { ... }
fn tasks_notify_done_fn_full_name(&self) -> String { ... }
}Expand description
Used to make the postgres table/view/function names pluggable. You’ll
typically want to use its implementor TaskTables that can be
instantiated with a customizable schema and name prefix.
Required Methods§
fn schema_name(&self) -> &str
fn tasks_table(&self) -> &str
fn tasks_ready_view(&self) -> &str
fn tasks_notify_fn(&self) -> &str
fn tasks_notify_done_fn(&self) -> &str
fn tasks_queue_name(&self) -> &str
Provided Methods§
fn tasks_queue_done_name(&self) -> String
fn tasks_table_full_name(&self) -> String
fn tasks_ready_view_full_name(&self) -> String
fn tasks_notify_fn_full_name(&self) -> String
fn tasks_notify_done_fn_full_name(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".