/build/source/nativelink-redis-tester/src/pubsub.rs
Line | Count | Source |
1 | | // Copyright 2026 The NativeLink Authors. All rights reserved. |
2 | | // |
3 | | // Licensed under the Functional Source License, Version 1.1, Apache 2.0 Future License (the "License"); |
4 | | // you may not use this file except in compliance with the License. |
5 | | // You may obtain a copy of the License at |
6 | | // |
7 | | // See LICENSE file for details |
8 | | // |
9 | | // Unless required by applicable law or agreed to in writing, software |
10 | | // distributed under the License is distributed on an "AS IS" BASIS, |
11 | | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | | // See the License for the specific language governing permissions and |
13 | | // limitations under the License. |
14 | | |
15 | | #[derive(Debug, Clone, Copy)] |
16 | | pub struct MockPubSub {} |
17 | | |
18 | | impl MockPubSub { |
19 | 0 | pub const fn new() -> Self { |
20 | 0 | Self {} |
21 | 0 | } |
22 | | } |
23 | | |
24 | | impl Default for MockPubSub { |
25 | 0 | fn default() -> Self { |
26 | 0 | Self::new() |
27 | 0 | } |
28 | | } |