Files
unshell/src/protocol/mod.rs
T
2026-05-31 10:26:57 -06:00

37 lines
777 B
Rust

mod endpoint;
mod error;
mod leaf;
mod leaf_meta;
mod packet;
mod procedure;
mod session;
pub use endpoint::{Endpoint, HookID};
pub use error::*;
pub use leaf::Leaf;
pub use leaf_meta::LeafMeta;
pub use packet::Packet;
pub use procedure::*;
pub use session::*;
pub use unshell_macros::unshell_leaf;
// Various named types used for brevity
use alloc::{
collections::{btree_map::BTreeMap, btree_set::BTreeSet, vec_deque::VecDeque},
vec::Vec,
};
type Path = Vec<u32>;
type EndpointName = u32;
type ConnectionSet = BTreeSet<(EndpointName, bool)>;
type HookMap = BTreeMap<HookID, EndpointName>;
pub type PacketQueue = VecDeque<Packet>;
type RouteMap = BTreeMap<EndpointName, PacketQueue>;
#[cfg(test)]
mod tests {
mod merkle_sync;
mod oneshot;
mod packet;
}