pub struct QueueManager { /* private fields */ }Expand description
Thin wrapper around a queue driver, mirroring the main crate’s QueueManager. This avoids a circular dependency while keeping the same API surface.
Implementations§
Source§impl QueueManager
impl QueueManager
pub fn new(driver: Box<dyn QueueInterface>) -> Self
pub async fn add_to_queue(&self, queue_name: &str, data: JobData) -> Result<()>
pub async fn process_queue( &self, queue_name: &str, callback: JobProcessorFnAsync, ) -> Result<()>
pub async fn disconnect(&self) -> Result<()>
pub async fn check_health(&self) -> Result<()>
Auto Trait Implementations§
impl Freeze for QueueManager
impl !RefUnwindSafe for QueueManager
impl Send for QueueManager
impl Sync for QueueManager
impl Unpin for QueueManager
impl UnsafeUnpin for QueueManager
impl !UnwindSafe for QueueManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more