amagi 0.1.6

Rust SDK, CLI, and Web API service skeleton for multi-platform social web adapters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::{Deserialize, Serialize};

/// Runtime node role used by the multi-node WSS transport.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum NodeRole {
    /// Entry node that accepts downstream node sessions.
    Root,
    /// Leaf node that connects to an upstream node and executes local tasks.
    Worker,
    /// Intermediate node that both connects upward and accepts downstream sessions.
    Relay,
    /// Mixed local node role without explicit upstream or downstream defaults.
    Hybrid,
}