Skip to main content

liminal_server/server/
connection.rs

1#[path = "connection/apply.rs"]
2mod apply;
3#[path = "connection/channel_registry.rs"]
4pub mod channel_registry;
5#[path = "connection/conversation.rs"]
6mod conversation;
7#[path = "connection/delivery.rs"]
8mod delivery;
9#[path = "connection/incarnation.rs"]
10mod incarnation;
11#[cfg(test)]
12#[path = "connection/incarnation_tests.rs"]
13mod incarnation_tests;
14#[path = "connection/loopback.rs"]
15mod loopback;
16#[path = "connection/notifier.rs"]
17pub mod notifier;
18#[path = "connection/outbound.rs"]
19mod outbound;
20#[path = "connection/participant_delivery.rs"]
21mod participant_delivery;
22#[cfg(test)]
23#[path = "connection/participant_runtime_tests.rs"]
24mod participant_runtime_tests;
25#[path = "connection/pending_reply.rs"]
26mod pending_reply;
27#[path = "connection/process.rs"]
28mod process;
29#[path = "connection/services.rs"]
30pub mod services;
31#[path = "connection/services_cluster.rs"]
32mod services_cluster;
33#[cfg(test)]
34#[path = "connection/services_r5_tests.rs"]
35mod services_r5_tests;
36#[path = "connection/services_schema.rs"]
37mod services_schema;
38#[path = "connection/state.rs"]
39mod state;
40#[path = "connection/supervisor.rs"]
41mod supervisor;
42#[path = "connection/wake.rs"]
43pub(crate) mod wake;
44#[path = "connection/websocket.rs"]
45mod websocket;
46#[path = "connection/worker_front_door.rs"]
47mod worker_front_door;
48
49pub use channel_registry::{
50    ChannelAccessError, ChannelConfigField, ChannelDescriptor, ChannelOrigin, ChannelRegistration,
51    ChannelRegistryError, ChannelState, ChannelStatus, MAX_CHANNELS_KEY, Registered,
52};
53pub use conversation::{ConnectionConversation, ConversationResource};
54// The in-process transport's public surface is exactly two names: the type an
55// embedded caller holds and the constructor that mints it. `LoopbackServerEnd`
56// is deliberately NOT re-exported — it is the half that touches the connection
57// machinery, so the private `loopback` module is its visibility ceiling and the
58// step-3 sites that need it (all of them inside `connection`) reach it as
59// `loopback::LoopbackServerEnd`.
60pub use loopback::{LoopbackClientEnd, LoopbackDuplex};
61pub use notifier::ConnectionNotifier;
62#[cfg(test)]
63pub(crate) const fn assert_held_heads_are_move_only() {
64    macro_rules! assert_not_impl {
65        ($type:ty: $trait:path) => {
66            const _: fn() = || {
67                struct Probe<T: ?Sized>(core::marker::PhantomData<T>);
68                trait AmbiguousIfImplemented<A> {
69                    fn probe() {}
70                }
71                impl<T: ?Sized> AmbiguousIfImplemented<()> for Probe<T> {}
72                impl<T: ?Sized + $trait> AmbiguousIfImplemented<u8> for Probe<T> {}
73                let _ = <Probe<$type> as AmbiguousIfImplemented<_>>::probe;
74            };
75        };
76    }
77    assert_not_impl!(participant_delivery::HeldParticipantHead: Clone);
78    assert_not_impl!(participant_delivery::HeldParticipantHead: Copy);
79    assert_not_impl!(participant_delivery::HeldObserverHead: Clone);
80    assert_not_impl!(participant_delivery::HeldObserverHead: Copy);
81}
82pub use services::{
83    ChannelCluster, ChannelOperation, ConnectionServices, ConnectionSubscription,
84    LiminalConnectionServices, PublishOutcome, build_connection_services,
85};
86pub use supervisor::{ConnectionHandle, ConnectionSupervisor, PushReplyAwaiter};
87pub(crate) use wake::ReadyWaker;
88pub use websocket::WebSocketListener;
89pub use worker_front_door::WorkerFrontDoorServices;