mesocarp 0.8.6

High-performance concurrency, synchronization, scheduling, and logging primitives in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt::Display;

pub mod gvt;

#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum ComputeLayout {
    HubSpoke,
    Decentralized,
}

impl Display for ComputeLayout {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            ComputeLayout::HubSpoke => write!(f, "Centralized/Master Channel"),
            ComputeLayout::Decentralized => write!(f, "Decentralized"),
        }
    }
}