pub struct CommEdge {
pub from: usize,
pub to: usize,
pub bandwidth: f64,
pub latency: f64,
}Expand description
A directed communication channel (edge) between two agents.
Fields§
§from: usize§to: usize§bandwidth: f64Communication bandwidth (higher = faster).
latency: f64Latency in milliseconds (lower = faster).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CommEdge
impl<'de> Deserialize<'de> for CommEdge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommEdge
impl RefUnwindSafe for CommEdge
impl Send for CommEdge
impl Sync for CommEdge
impl Unpin for CommEdge
impl UnsafeUnpin for CommEdge
impl UnwindSafe for CommEdge
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