pub fn mailbox_channel<C, U>(
cfg: Config,
) -> (ControlSender<C>, MailboxOwner<U>, MailboxRef<U>, Consumer<C, U>)Expand description
Build an actor-oriented channel with affine admission ownership.
The returned MailboxOwner is the sole durable user-lane sender.
External addresses are restricted MailboxRefs and therefore neither
keep the mailbox open, retain admission permits, nor resurrect the mailbox
after retirement. Call
MailboxOwner::close_admission, continue receiving until
Received::UserLaneClosed, and finally drop the control sender when no
further lifecycle traffic can arrive; Consumer::recv then drains to
None.