Crate nerve

Source
Expand description

Nerve Framework - In-Process Reactive System

A high-performance, in-process reactive system with Quality of Service (QoS) guarantees for message passing and component coordination.

§Core Features

  • QoS-based message buffering
  • Thread lifecycle management
  • Pub/sub communication patterns
  • Real-time performance monitoring

§Namespace Structure

nerve::
├── core::         // Core traits, types, and errors
├── memory::       // Memory management and optimization
├── thread::       // Thread lifecycle and coordination
├── node::         // Node registry and discovery
├── communication::// Message routing and protocols
├── cache::        // Multi-level caching system
├── protocols::    // Communication protocols
└── system::       // System integration and management

§Quick Start

use nerve::prelude::*;
use nerve::memory::buffers::QoSBuffer;
use nerve::communication::routers::array_trie::ArrayTrieRouter;
use nerve::thread::lifecycle::ThreadState;

// Create a QoS-aware buffer
let mut buffer = QoSBuffer::new(100, QoS::BestEffort).unwrap();
buffer.push("Message").unwrap();

// Create a high-performance router
let router = ArrayTrieRouter::new();

Modules§

cache
Caching System for Nerve Framework
cli
CLI Module for Nerve Framework System Debugging
communication
Communication System for Nerve Framework
core
Core namespace for Nerve Framework
error
Error types for the Nerve Framework
integration
System Integration Module
memory
Memory Management System for Nerve Framework
node
Node Management System for Nerve Framework
prelude
Prelude module for convenient imports
protocols
Protocol System for Nerve Framework
system
System Integration for Nerve Framework
thread
Thread Management System for Nerve Framework