Skip to main content

mycelium_protocol/
lib.rs

1#![doc = include_str!("../README.md")]
2
3/// Initial protocol marker used during namespace bootstrapping.
4pub const PROTOCOL_VERSION: u16 = 0;
5
6/// High-level kind of a Mycelium protocol envelope.
7#[derive(Clone, Copy, Debug, Eq, PartialEq)]
8pub enum EnvelopeKind {
9    /// Control-plane coordination.
10    Control,
11    /// Application data.
12    Data,
13}