#[repr(C)]pub struct IOBluetoothDeviceSearchDeviceAttributes {
pub address: BluetoothDeviceAddress,
pub name: BluetoothDeviceName,
pub serviceClassMajor: BluetoothServiceClassMajor,
pub deviceClassMajor: BluetoothDeviceClassMajor,
pub deviceClassMinor: BluetoothDeviceClassMinor,
}Available on crate features
Bluetooth and IOBluetoothUserLib only.Expand description
Structure used to search for particular devices.
Make sure you specify all fields! If you do not set deviceClassMajor for example, and the value is 0, that is mapped to kBluetoothDeviceClassMajorMiscellaneous, which is probably not what you want. To search for all device types, you must pass kBluetoothDeviceClassMajorAny and its relatives.
See also Apple’s documentation
Fields§
§address: BluetoothDeviceAddress§name: BluetoothDeviceName§serviceClassMajor: BluetoothServiceClassMajor§deviceClassMajor: BluetoothDeviceClassMajor§deviceClassMinor: BluetoothDeviceClassMinorTrait Implementations§
Source§impl Clone for IOBluetoothDeviceSearchDeviceAttributes
impl Clone for IOBluetoothDeviceSearchDeviceAttributes
Source§fn clone(&self) -> IOBluetoothDeviceSearchDeviceAttributes
fn clone(&self) -> IOBluetoothDeviceSearchDeviceAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Encode for IOBluetoothDeviceSearchDeviceAttributes
Available on crate feature objc2 only.
impl Encode for IOBluetoothDeviceSearchDeviceAttributes
Available on crate feature
objc2 only.Source§impl PartialEq for IOBluetoothDeviceSearchDeviceAttributes
impl PartialEq for IOBluetoothDeviceSearchDeviceAttributes
Source§fn eq(&self, other: &IOBluetoothDeviceSearchDeviceAttributes) -> bool
fn eq(&self, other: &IOBluetoothDeviceSearchDeviceAttributes) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefEncode for IOBluetoothDeviceSearchDeviceAttributes
Available on crate feature objc2 only.
impl RefEncode for IOBluetoothDeviceSearchDeviceAttributes
Available on crate feature
objc2 only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for IOBluetoothDeviceSearchDeviceAttributes
impl StructuralPartialEq for IOBluetoothDeviceSearchDeviceAttributes
Auto Trait Implementations§
impl Freeze for IOBluetoothDeviceSearchDeviceAttributes
impl RefUnwindSafe for IOBluetoothDeviceSearchDeviceAttributes
impl Send for IOBluetoothDeviceSearchDeviceAttributes
impl Sync for IOBluetoothDeviceSearchDeviceAttributes
impl Unpin for IOBluetoothDeviceSearchDeviceAttributes
impl UnwindSafe for IOBluetoothDeviceSearchDeviceAttributes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.