pub struct MailboxTask {
pub task: String,
pub interrupt: bool,
pub pending_messages: Vec<String>,
}Expand description
A task sent from parent to child agent.
Fields§
§task: StringThe task description / user input for the child agent.
interrupt: boolWhether to interrupt the child’s current execution.
pending_messages: Vec<String>Pending messages accumulated before this task (from send_message).
Trait Implementations§
Source§impl Clone for MailboxTask
impl Clone for MailboxTask
Source§fn clone(&self) -> MailboxTask
fn clone(&self) -> MailboxTask
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MailboxTask
impl Debug for MailboxTask
impl Eq for MailboxTask
Source§impl PartialEq for MailboxTask
impl PartialEq for MailboxTask
impl StructuralPartialEq for MailboxTask
Auto Trait Implementations§
impl Freeze for MailboxTask
impl RefUnwindSafe for MailboxTask
impl Send for MailboxTask
impl Sync for MailboxTask
impl Unpin for MailboxTask
impl UnsafeUnpin for MailboxTask
impl UnwindSafe for MailboxTask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.