pub struct Message {
pub from: AgentId,
pub to: AgentId,
pub payload: String,
pub nutrient: f32,
pub hop_count: u32,
pub max_hops: u32,
}Fields§
§from: AgentId§to: AgentId§payload: String§nutrient: f32§hop_count: u32§max_hops: u32Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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