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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//! Minimal Network Kernel
//!
//! This module provides a minimal network kernel implementation that performs no
//! additional processing on network events. It's useful for servers that need to
//! accept connections but don't require custom event handling.
//!
//! # Features
//! - Zero overhead processing
//! - Automatic event acceptance
//! - Minimal resource usage
//! - No state management
//! - Simple implementation
//!
//! # Example:
//! ```rust
//! use citadel_sdk::prelude::*;
//! use citadel_sdk::prefabs::server::empty::EmptyKernel;
//!
//! # fn main() -> Result<(), NetworkError> {
//! let kernel = Box::new(EmptyKernel::<StackedRatchet>::default());
//! # Ok(())
//! # }
//! ```
//!
//! # Important Notes
//! - No event processing
//! - No connection handling
//! - No channel interaction
//! - Suitable for basic servers
//! - Not suitable for interactive servers
//!
//! # Related Components
//! - [`NetKernel`]: Base trait for network kernels
//! - [`NodeRemote`]: Server remote interface
//! - [`NodeResult`]: Network event handling
//!
//! [`NetKernel`]: crate::prelude::NetKernel
//! [`NodeRemote`]: crate::prelude::NodeRemote
//! [`NodeResult`]: crate::prelude::NodeResult
use *;
use PhantomData;
/// A kernel that does nothing to events in the protocol, nor does it cause any requests. A server that allows any and all connections with no special handlers would benefit from the use of this kernel.
/// This should never be used for interacting with peers/clients from the server, since to do so would deny the possibility of interacting with channels.
;