s2n_quic/provider/event/
disabled.rs

1// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2// SPDX-License-Identifier: Apache-2.0
3
4use crate::provider::event::{ConnectionInfo, ConnectionMeta};
5
6#[derive(Debug, Default)]
7pub struct Provider;
8
9impl super::Provider for Provider {
10    type Subscriber = Subscriber;
11    type Error = core::convert::Infallible;
12
13    fn start(self) -> Result<Self::Subscriber, Self::Error> {
14        Ok(Subscriber)
15    }
16}
17
18#[derive(Debug, Default)]
19pub struct Subscriber;
20
21impl super::Subscriber for Subscriber {
22    type ConnectionContext = ();
23
24    fn create_connection_context(
25        &mut self,
26        _meta: &ConnectionMeta,
27        _info: &ConnectionInfo,
28    ) -> Self::ConnectionContext {
29    }
30}