pub struct MemoryMailbox { /* private fields */ }Expand description
An in-memory mailbox; its messages are lost with the process.
Trait Implementations§
Source§impl Debug for MemoryMailbox
impl Debug for MemoryMailbox
Source§impl Default for MemoryMailbox
impl Default for MemoryMailbox
Source§impl Mailbox for MemoryMailbox
impl Mailbox for MemoryMailbox
Source§fn receive(&self, deferred: &[String]) -> Option<Envelope>
fn receive(&self, deferred: &[String]) -> Option<Envelope>
The oldest message that is neither in flight nor deferred (its event name matches no
descriptor in
deferred), now marked in flight.Source§fn ack(&self, message_id: &str) -> Result<(), MailboxError>
fn ack(&self, message_id: &str) -> Result<(), MailboxError>
Removes the in-flight message
message_id (its turn is durable). Read moreSource§fn release(&self, message_id: &str)
fn release(&self, message_id: &str)
Puts the in-flight message
message_id back, to be received again.Source§fn release_all(&self)
fn release_all(&self)
Puts every in-flight message back.
Source§fn pending_deliverable(&self, deferred: &[String]) -> usize
fn pending_deliverable(&self, deferred: &[String]) -> usize
The number of messages that are neither in flight nor deferred.
Source§fn has_deliverable(&self, deferred: &[String]) -> bool
fn has_deliverable(&self, deferred: &[String]) -> bool
True when
Mailbox::receive would return a message.Auto Trait Implementations§
impl !Freeze for MemoryMailbox
impl Forget for MemoryMailbox
impl Move for MemoryMailbox
impl RefUnwindSafe for MemoryMailbox
impl Send for MemoryMailbox
impl Sync for MemoryMailbox
impl Unpin for MemoryMailbox
impl UnsafeUnpin for MemoryMailbox
impl UnwindSafe for MemoryMailbox
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