pub struct StoreMailbox { /* private fields */ }Expand description
A mailbox kept in the actor’s graph store, in graph <address>/mailbox: it survives
restarts, and its messages are delivered again in their original order.
Implementations§
Trait Implementations§
Source§impl Debug for StoreMailbox
impl Debug for StoreMailbox
Source§impl Mailbox for StoreMailbox
impl Mailbox for StoreMailbox
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 StoreMailbox
impl !RefUnwindSafe for StoreMailbox
impl !UnwindSafe for StoreMailbox
impl Forget for StoreMailbox
impl Move for StoreMailbox
impl Send for StoreMailbox
impl Sync for StoreMailbox
impl Unpin for StoreMailbox
impl UnsafeUnpin for StoreMailbox
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