pub enum Topology {
Mesh,
Star,
}Expand description
Wire topology.
Variants§
Mesh
Full-mesh TCP — every rank connects to higher ranks and accepts from lower. Needed for peer-to-peer collectives (ring all-reduce, etc.).
Star
Star — the coordinator (rank 0) listens; workers dial in and need no inbound port. NAT/mobile/Pi-behind-a-router friendly; the shape for the coordinator/worker ship-graph model and federated averaging.
Trait Implementations§
impl Copy for Topology
impl Eq for Topology
impl StructuralPartialEq for Topology
Auto Trait Implementations§
impl Freeze 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