pub struct ChildMailbox {
pub task_rx: Receiver<MailboxTask>,
}Expand description
The child-side handle to a mailbox.
Given to the spawned child agent task. The child reads tasks from task_rx
and posts results via hub.post_result() using the agent path.
Fields§
§task_rx: Receiver<MailboxTask>Receive tasks from parent.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChildMailbox
impl RefUnwindSafe for ChildMailbox
impl Send for ChildMailbox
impl Sync for ChildMailbox
impl Unpin for ChildMailbox
impl UnsafeUnpin for ChildMailbox
impl UnwindSafe for ChildMailbox
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