1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! Kernel Trait Definitions for Citadel Protocol
//!
//! This module defines the core trait interfaces that all kernel implementations must satisfy.
//! It provides the contract between the high-level protocol operations and the underlying
//! network implementations.
//!
//! # Features
//!
//! - Abstract network kernel interface definition
//! - Protocol-agnostic message handling
//! - Asynchronous operation support
//! - Session management traits
//! - Error handling specifications
//!
//! # Important Notes
//!
//! - All kernel implementations must be thread-safe
//! - Methods are asynchronous and return Futures
//! - Implementations must handle connection state
//! - Error types must implement std::error::Error
//!
//! # Related Components
//!
//! - `kernel/mod.rs`: Main kernel module implementation
//! - `kernel_executor.rs`: Execution runtime
//! - `kernel_communicator.rs`: Communication handling
//! - `error.rs`: Protocol error definitions
use async_trait;
use crateNetworkError;
use crateNodeResult;
use crateNodeRemote;
use auto_impl;
use Ratchet;
/// The [`NetKernel`] is the thread-safe interface between the single-threaded OR multi-threaded async
/// protocol and your network application