prns_runtime/runtime/
mod.rs1mod command;
2mod event;
3mod health;
4mod identity_blackhole;
5pub mod node;
6pub mod node_introspection;
7pub mod packet_phy_retention;
8pub mod request_endpoints;
9#[cfg(feature = "rns-management")]
10pub mod rns_management;
11#[cfg(feature = "rns-management")]
12pub mod rns_remote_management;
13#[cfg(feature = "rns-management")]
14pub mod rns_rpc;
15#[cfg(feature = "rnx")]
16pub mod rnx;
17
18cfg_if::cfg_if! {
19 if #[cfg(feature = "alloc")] {
20 pub mod persistence_snapshots;
21
22 pub use persistence_snapshots::{
23 PersistedStateSnapshot, SelfRatchetSnapshot, SelfRatchetsSnapshot,
24 };
25 }
26}
27
28pub use crate::engine::BlackholeSeedReport;
29pub use command::{
30 ClearAnnounceQueuesOutcome, DestinationIdentityRetentionControl,
31 DestinationIdentityRetentionControlError, DropRouteOutcome, DropRoutesViaOutcome, PrnsNodeApi,
32 RoutingControl, RoutingControlError, SendError,
33};
34pub use event::{Diagnostic, Message, PrnsEvent};
35pub use health::RuntimeHealth;
36pub use identity_blackhole::{
37 IdentityBlackholeControl, IdentityBlackholeControlError, IdentityBlackholeSource,
38 IdentityBlackholeSourceError,
39};
40pub use node::{
41 assemble_node, configure_preconfigured_destination, AssembledNode,
42 ConfigurePreconfiguredDestinationError, ManuallyAttached, NoPersistence,
43 PreConfiguredDestination, PrnsNodeRecipe, ServeMyRequestEndpoints,
44};
45
46#[doc(hidden)]
47pub mod placement {
48 pub use super::node::assemble_node_in_place;
49}
50
51cfg_if::cfg_if! {
52 if #[cfg(feature = "runtime-metrics")] {
53 mod metrics;
54 mod observability;
55
56 pub use metrics::{
57 AnnounceEgressCounts, AnnounceEgressMetricsSnapshot, AnnounceEgressOutcome,
58 AnnounceOriginCounts, CryptoMetricsSnapshot, EgressInterfaceKindCounts,
59 EgressMetricsSnapshot, InterfaceAnnounceEgressMetricsSnapshot, RuntimeMetricsSnapshot,
60 };
61 pub use observability::{
62 ReliabilityMetricsSnapshot, RuntimeLinkClosure, RuntimeLinkClosureCounts,
63 RuntimeOperation, RuntimeOperationCounts, RuntimeOperationOutcome,
64 RuntimeResourceFailure, RuntimeResourceFailureCounts, RuntimeRouteRemoval,
65 RuntimeRouteRemovalCounts,
66 };
67 }
68}