1#![warn(missing_docs)]
54
55pub use futures_channel;
56
57pub mod adapter;
58pub mod address;
59pub mod backlog;
60pub mod blocklist;
61pub mod capabilities;
62pub mod chooser;
63#[cfg(feature = "classic")]
65pub mod classic;
66pub mod error;
67pub mod filter;
68pub mod gatt;
69pub mod grants;
70pub mod l2cap;
71#[cfg(feature = "le-audio")]
72pub mod le_audio;
73#[cfg(feature = "mesh")]
74pub mod mesh;
75pub mod peripheral;
77#[cfg(feature = "profiles")]
78pub mod profiles;
79#[cfg(any(feature = "raw-acl", feature = "raw-sco", feature = "le-audio"))]
80pub mod raw;
81pub mod registry;
82pub mod restoration;
83pub mod scan;
84#[cfg(feature = "classic")]
86pub mod sdp;
87pub mod state;
88pub mod timer;
89pub mod uuid;
90#[cfg(feature = "uuid")]
92mod uuid_interop;
93
94pub use adapter::{
95 AdapterInfo, ConnectionParameters, ConnectionPhy, ConnectionPriority, Pairing, Phy,
96};
97pub use capabilities::{Protocol, ProtocolCapabilities};
98pub use chooser::{Candidate, Candidates, DeviceChooser};
99#[cfg(feature = "classic")]
100pub use classic::{
101 BluetoothAddress, ClassOfDevice, ClassicAddressError, ClassicDevice, ClassicPsm,
102 ClassicSecurity, RfcommChannel,
103};
104pub use error::{Authorization, Availability, Error, Result};
105pub use filter::{Advertisement, DataPrefix, DeviceFilter, RequestDeviceOptions};
106pub use gatt::{CharacteristicProperties, WriteType};
107pub use l2cap::{ChannelSink, Closed, L2capChannel, PlatformChannel, Psm};
108#[cfg(feature = "le-audio")]
109pub use le_audio::{CodecError, IsoConfiguration, IsoMetadata, IsoStream, Lc3Codec, Lc3Frame};
110#[cfg(feature = "mesh")]
111pub use mesh::{
112 MeshAddress, MeshNetworkPdu, NetworkHeader, ProvisioningEvent, ProvisioningFailure,
113 ProvisioningSession, ProvisioningState, ProvisioningTransitionError,
114};
115#[cfg(feature = "profiles")]
116pub use profiles::a2dp::{
117 negotiate as negotiate_a2dp, negotiate_sbc_capabilities, negotiate_sbc_parameters,
118 AvdtpCapabilitiesError, AvdtpDiscoverError, AvdtpEndpointType, AvdtpError, AvdtpMediaType,
119 AvdtpMessageType, AvdtpPacketType, AvdtpResponse, AvdtpResponseResult, AvdtpSbcCapability,
120 AvdtpServiceCategory, AvdtpSignalIdentifier, AvdtpSignalingPacket,
121 AvdtpStreamEndpointDescriptor, AvdtpStreamEndpointId, Capability as A2dpCapability,
122 Codec as A2dpCodec, Configuration as A2dpConfiguration,
123 NegotiationError as A2dpNegotiationError, SbcAllocation, SbcChannelMode, SbcConfiguration,
124 SbcFrame, SbcMediaError, SbcMediaPacket,
125};
126#[cfg(feature = "profiles")]
127pub use profiles::avrcp::{
128 absolute_volume, playback_status, Command as AvrcpCommand, Event as AvrcpEvent,
129 Metadata as AvrcpMetadata, PassThrough as AvrcpPassThrough, PlaybackStatus,
130};
131#[cfg(feature = "profiles")]
132pub use profiles::data::{
133 parse_obex_header, DunState, ObexError, ObexHeader, ObexOperation, ObexPacket, PanRole,
134};
135#[cfg(feature = "profiles")]
136pub use profiles::hfp::{
137 encode_command, AtError, AtLine, AtParser, CallCommand, CallInfo, CallState,
138};
139#[cfg(feature = "profiles")]
140pub use profiles::hid::{
141 HidError, HidPacket, InputValue, ReportDescriptor, ReportField, TransactionType,
142};
143#[cfg(feature = "profiles")]
144pub use profiles::pan::{
145 ControlMessage as PanControlMessage, Error as PanError, Frame as PanFrame,
146 PacketType as PanPacketType,
147};
148#[cfg(feature = "profiles")]
149pub use profiles::{Profile, ProfileRequest, ProfileRole};
150#[cfg(feature = "raw-acl")]
151pub use raw::AclPacket;
152#[cfg(feature = "le-audio")]
153pub use raw::IsoPacket;
154#[cfg(feature = "raw-sco")]
155pub use raw::ScoPacket;
156pub use restoration::{Restoration, RestoredScan};
157#[cfg(feature = "classic")]
158pub use sdp::{SdpDataElement, SdpError, SdpServiceRecord};
159pub use state::ManagerState;
160pub use timer::{sleep, timeout};
161pub use uuid::{BluetoothUuid, IntoUuid};