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
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2024 Praxis Contributors
//! The [`Protocol`] trait implemented by each listener protocol adapter.
//!
//! An implementor binds its listeners and registers the matching services
//! onto the shared backend [`Runtime`]. The server crate calls
//! [`Protocol::register`] once per configured protocol at startup; the HTTP
//! and TCP adapters of the selected backend are exposed as [`Http`] and
//! [`Tcp`].
//!
//! [`Http`]: crate::backend::Http
//! [`Runtime`]: praxis_core::backend::Runtime
//! [`Tcp`]: crate::backend::Tcp
use ;
use watch;
use crateListenerPipelines;
/// A protocol implementation that registers services onto a shared server runtime.