pub struct LinkMailbox { /* private fields */ }Expand description
The runtime’s view of an actor reached through a Link: a mailbox that offers each
message to the link. It accepts a message once the peer acknowledged it; until then it
reports the delivery as failed, so the outbox keeps the send and retries it. A send refused
by the peer’s credential check is recorded as a dead letter (reason transport-refused)
and settled.
Implementations§
Source§impl LinkMailbox
impl LinkMailbox
Trait Implementations§
Source§impl Debug for LinkMailbox
impl Debug for LinkMailbox
Source§impl Mailbox for LinkMailbox
impl Mailbox for LinkMailbox
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 !RefUnwindSafe for LinkMailbox
impl !UnwindSafe for LinkMailbox
impl Forget for LinkMailbox
impl Freeze for LinkMailbox
impl Move for LinkMailbox
impl Send for LinkMailbox
impl Sync for LinkMailbox
impl Unpin for LinkMailbox
impl UnsafeUnpin for LinkMailbox
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