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
// 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 Pingora
//! services onto the shared [`PingoraServerRuntime`]. The server crate calls
//! [`Protocol::register`] once per configured protocol at startup; the HTTP and
//! TCP adapters live in [`crate::http`] and [`crate::tcp`].
//!
//! [`PingoraServerRuntime`]: praxis_core::PingoraServerRuntime
use ;
use watch;
use crateListenerPipelines;
/// A protocol implementation that registers services onto a shared server runtime.