pub struct MemoryQueueManager { /* private fields */ }Expand description
Memory-based queue manager for simple deployments
Implementations§
Source§impl MemoryQueueManager
impl MemoryQueueManager
pub fn new() -> Self
Sourcepub fn start_processing(&self)
pub fn start_processing(&self)
Starts the background processing loop. Should be called once after setup.
Trait Implementations§
Source§impl Default for MemoryQueueManager
impl Default for MemoryQueueManager
Source§impl QueueInterface for MemoryQueueManager
impl QueueInterface for MemoryQueueManager
fn add_to_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
queue_name: &'life1 str,
data: JobData,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process_queue<'life0, 'life1, 'async_trait>(
&'life0 self,
queue_name: &'life1 str,
callback: JobProcessorFnAsync,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn disconnect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for MemoryQueueManager
impl !RefUnwindSafe for MemoryQueueManager
impl Send for MemoryQueueManager
impl Sync for MemoryQueueManager
impl Unpin for MemoryQueueManager
impl UnsafeUnpin for MemoryQueueManager
impl !UnwindSafe for MemoryQueueManager
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