pub struct InMemoryQueueBackend { /* private fields */ }Trait Implementations§
Source§impl Default for InMemoryQueueBackend
impl Default for InMemoryQueueBackend
Source§fn default() -> InMemoryQueueBackend
fn default() -> InMemoryQueueBackend
Returns the “default value” for a type. Read more
Source§impl QueueBackend for InMemoryQueueBackend
impl QueueBackend for InMemoryQueueBackend
fn enqueue( &self, topic: &str, payload: Value, scheduled_at_unix_ms: Option<u64>, ) -> AppServiceResult<QueueMessage>
fn dequeue(&self, topic: &str) -> AppServiceResult<Option<QueueMessage>>
fn len(&self, topic: &str) -> AppServiceResult<usize>
Auto Trait Implementations§
impl !Freeze for InMemoryQueueBackend
impl RefUnwindSafe for InMemoryQueueBackend
impl Send for InMemoryQueueBackend
impl Sync for InMemoryQueueBackend
impl Unpin for InMemoryQueueBackend
impl UnsafeUnpin for InMemoryQueueBackend
impl UnwindSafe for InMemoryQueueBackend
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