pub struct MemoryQueue { /* private fields */ }Expand description
Deterministic in-memory adapter for tests and local development.
Visibility delays run on a logical clock advanced by MemoryQueue::advance
so retry behaviour is testable without a runtime timer.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryQueue
impl Clone for MemoryQueue
Source§fn clone(&self) -> MemoryQueue
fn clone(&self) -> MemoryQueue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for MemoryQueue
impl Default for MemoryQueue
Source§fn default() -> MemoryQueue
fn default() -> MemoryQueue
Returns the “default value” for a type. Read more
Source§impl Queue for MemoryQueue
impl Queue for MemoryQueue
Source§fn publish(&self, topic: &str, message: Message) -> QueueFuture<()>
fn publish(&self, topic: &str, message: Message) -> QueueFuture<()>
Publishes one message to a topic.
Source§fn receive(&self, topic: &str) -> QueueFuture<Option<Delivery>>
fn receive(&self, topic: &str) -> QueueFuture<Option<Delivery>>
Takes the next visible delivery from a topic, if any.
Auto Trait Implementations§
impl Freeze for MemoryQueue
impl RefUnwindSafe for MemoryQueue
impl Send for MemoryQueue
impl Sync for MemoryQueue
impl Unpin for MemoryQueue
impl UnsafeUnpin for MemoryQueue
impl UnwindSafe for MemoryQueue
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