Trait MailboxSender

Source
pub trait MailboxSender:
    Send
    + Sync
    + Debug
    + Any {
    // Required method
    fn post(
        &self,
        envelope: MessageEnvelope,
        return_handle: PortHandle<Undeliverable<MessageEnvelope>>,
    );
}
Expand description

MailboxSenders can send messages through ports to mailboxes. It provides a unified interface for message delivery in the system.

Required Methods§

Source

fn post( &self, envelope: MessageEnvelope, return_handle: PortHandle<Undeliverable<MessageEnvelope>>, )

TODO: consider making this publicly inaccessible. While the trait itself needs to be public, its only purpose for the end-user API is to provide the typed messaging APIs from (Once)PortRef and ActorRef.

Implementors§