xref: /aosp_15_r20/external/uwb/src/rust/uwb_core/src/service.rs (revision e0df40009cb5d71e642272d38ba1bb7ffccfce41)
1 // Copyright 2022, The Android Open Source Project
2 //
3 // Licensed under the Apache License, Version 2.0 (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 //     http://www.apache.org/licenses/LICENSE-2.0
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 //! This module provides the public interface of the UWB core library.
16 
17 #[cfg(feature = "proto")]
18 pub mod proto_uwb_service;
19 pub mod uwb_service;
20 pub mod uwb_service_builder;
21 pub mod uwb_service_callback_builder;
22 
23 #[cfg(test)]
24 mod mock_uwb_service_callback;
25 
26 // Re-export the public elements.
27 #[cfg(feature = "proto")]
28 pub use proto_uwb_service::{ProtoUwbService, ProtoUwbServiceCallback};
29 pub use uwb_service::{
30     NopUwbServiceCallback, UwbService, UwbServiceCallback, UwbServiceCallbackBuilder,
31 };
32 pub use uwb_service_builder::{default_runtime, UwbServiceBuilder};
33 pub use uwb_service_callback_builder::UwbServiceCallbackSendBuilder;
34