liminal_server/server/
connection.rs1#[path = "connection/apply.rs"]
2mod apply;
3mod broker_route;
4#[path = "connection/channel_registry.rs"]
5pub mod channel_registry;
6#[path = "connection/conversation.rs"]
7mod conversation;
8#[path = "connection/delivery.rs"]
9mod delivery;
10#[path = "connection/incarnation.rs"]
11mod incarnation;
12#[cfg(test)]
13#[path = "connection/incarnation_abandon_tests.rs"]
14mod incarnation_abandon_tests;
15#[cfg(test)]
16#[path = "connection/incarnation_start_tests.rs"]
17mod incarnation_start_tests;
18#[cfg(test)]
19#[path = "connection/incarnation_tests.rs"]
20mod incarnation_tests;
21mod lifecycle_route;
22mod link_route;
23#[path = "connection/loopback.rs"]
24mod loopback;
25#[path = "connection/notifier.rs"]
26pub mod notifier;
27#[path = "connection/outbound.rs"]
28mod outbound;
29#[path = "connection/participant_delivery.rs"]
30mod participant_delivery;
31#[cfg(test)]
32#[path = "connection/participant_only_services.rs"]
33pub(in crate::server) mod participant_only_services;
34#[cfg(test)]
35#[path = "connection/participant_runtime_tests.rs"]
36mod participant_runtime_tests;
37#[path = "connection/pending_reply.rs"]
38mod pending_reply;
39#[path = "connection/pre_admission.rs"]
40pub(crate) mod pre_admission;
41#[path = "connection/process.rs"]
42mod process;
43#[path = "connection/reclaim_placement.rs"]
44pub(crate) mod reclaim_placement;
45#[cfg(test)]
46#[path = "connection/reclaim_placement_tests.rs"]
47mod reclaim_placement_tests;
48#[path = "connection/refusal.rs"]
49pub(crate) mod refusal;
50#[cfg(test)]
51#[path = "connection/refusal_tests.rs"]
52mod refusal_tests;
53mod reply_service;
54#[path = "connection/service_directory.rs"]
55mod service_directory;
56mod service_route;
57mod service_tap;
58#[path = "connection/services.rs"]
59pub mod services;
60#[cfg(test)]
61#[path = "connection/services_a1_dedup_tests.rs"]
62mod services_a1_dedup_tests;
63#[cfg(test)]
64#[path = "connection/services_adopt_config_tests.rs"]
65mod services_adopt_config_tests;
66#[path = "connection/services_cluster.rs"]
67mod services_cluster;
68#[cfg(test)]
69#[path = "connection/services_r5_tests.rs"]
70mod services_r5_tests;
71#[path = "connection/services_schema.rs"]
72mod services_schema;
73#[cfg(test)]
74mod services_tap_tests;
75#[cfg(test)]
76#[path = "connection/services_unresolved_restart_tests.rs"]
77mod services_unresolved_restart_tests;
78#[cfg(test)]
79#[path = "connection/services_unresolved_tests.rs"]
80mod services_unresolved_tests;
81#[path = "connection/state.rs"]
82mod state;
83#[path = "connection/supervisor.rs"]
84mod supervisor;
85#[cfg(test)]
86#[path = "connection/tests_no_path_refusal.rs"]
87mod tests_no_path_refusal;
88#[path = "connection/wake.rs"]
89pub(crate) mod wake;
90#[path = "connection/websocket.rs"]
91pub(crate) mod websocket;
92#[path = "connection/worker_front_door.rs"]
93mod worker_front_door;
94#[path = "connection/worker_route.rs"]
95mod worker_route;
96
97pub use channel_registry::{
98 CONSOLE_NAMESPACE_PREFIX, CONSOLE_TAP_PREFIX, ChannelAccessError, ChannelConfigField,
99 ChannelDescriptor, ChannelOrigin, ChannelRegistration, ChannelRegistryError, ChannelState,
100 ChannelStatus, MAX_CHANNELS_KEY, Registered, console_tap_target, is_console_subject,
101};
102pub use conversation::{ConnectionConversation, ConversationResource};
103pub use loopback::{LoopbackClientEnd, LoopbackDuplex};
110pub use notifier::{CheckpointCrossing, ConnectionNotifier, CrossingBinding, CrossingRecipient};
111#[cfg(test)]
112pub(crate) const fn assert_held_heads_are_move_only() {
113 macro_rules! assert_not_impl {
114 ($type:ty: $trait:path) => {
115 const _: fn() = || {
116 struct Probe<T: ?Sized>(core::marker::PhantomData<T>);
117 trait AmbiguousIfImplemented<A> {
118 fn probe() {}
119 }
120 impl<T: ?Sized> AmbiguousIfImplemented<()> for Probe<T> {}
121 impl<T: ?Sized + $trait> AmbiguousIfImplemented<u8> for Probe<T> {}
122 let _ = <Probe<$type> as AmbiguousIfImplemented<_>>::probe;
123 };
124 };
125 }
126 assert_not_impl!(participant_delivery::HeldParticipantHead: Clone);
127 assert_not_impl!(participant_delivery::HeldParticipantHead: Copy);
128 assert_not_impl!(participant_delivery::HeldObserverHead: Clone);
129 assert_not_impl!(participant_delivery::HeldObserverHead: Copy);
130}
131pub use services::{
132 ChannelCluster, ChannelOperation, ConnectionServices, ConnectionSubscription,
133 LiminalConnectionServices, PublishOutcome, build_connection_services,
134};
135pub use supervisor::ConnectionSupervisor;
136pub use supervisor::builder::ConnectionSupervisorBuilder;
137#[cfg(feature = "test-support")]
138pub(crate) use supervisor::builder::configured_lys;
139pub(crate) use supervisor::builder::{LysInstall, configured_lys_after_bind, lys_ask_runtime};
140#[cfg(feature = "test-support")]
141pub use supervisor::console_for_tests::ConsoleForTests;
142pub use supervisor::context_watch::start_context_watch;
143pub use supervisor::handle::{ConnectionHandle, PushReplyAwaiter};
144pub(crate) use wake::ReadyWaker;
145pub use websocket::WebSocketListener;
146pub use worker_front_door::WorkerFrontDoorServices;