pub struct InterAgentMessage {
pub source: AgentId,
pub target: AgentId,
pub content: String,
pub message_type: MessageType,
pub timestamp: Instant,
}Expand description
A message passed between agents in the multi-agent system.
Fields§
§source: AgentIdSending agent.
target: AgentIdReceiving agent.
content: StringMessage payload.
message_type: MessageTypeType of message.
timestamp: InstantWhen the message was created.
Implementations§
Trait Implementations§
Source§impl Clone for InterAgentMessage
impl Clone for InterAgentMessage
Source§fn clone(&self) -> InterAgentMessage
fn clone(&self) -> InterAgentMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InterAgentMessage
impl RefUnwindSafe for InterAgentMessage
impl Send for InterAgentMessage
impl Sync for InterAgentMessage
impl Unpin for InterAgentMessage
impl UnsafeUnpin for InterAgentMessage
impl UnwindSafe for InterAgentMessage
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