pub enum Topology {
Complete,
Links(Vec<(AgentId, AgentId)>),
}Expand description
Which pairs of agents can exchange messages directly. Agents without a direct link only hear of each other through relays.
Variants§
Complete
Every agent reaches every other agent.
Links(Vec<(AgentId, AgentId)>)
Only the listed pairs reach each other, in both directions.
Implementations§
Trait Implementations§
impl Eq for Topology
impl StructuralPartialEq for Topology
Auto Trait Implementations§
impl Forget for Topology
impl Freeze for Topology
impl Move for Topology
impl RefUnwindSafe for Topology
impl Send for Topology
impl Sync for Topology
impl Unpin for Topology
impl UnsafeUnpin for Topology
impl UnwindSafe for Topology
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