pub struct BluetoothDescriptor { /* private fields */ }Expand description
A Bluetooth transport descriptor
Implementations§
Source§impl BluetoothDescriptor
impl BluetoothDescriptor
Sourcepub fn new() -> BluetoothDescriptor
pub fn new() -> BluetoothDescriptor
Creates a new bluetooth transport descriptor without a known address.
Sourcepub fn with_address(address: [u8; 6]) -> BluetoothDescriptor
pub fn with_address(address: [u8; 6]) -> BluetoothDescriptor
Creates a new bluetooth transport descriptor with a known address.
Trait Implementations§
Source§impl Clone for BluetoothDescriptor
impl Clone for BluetoothDescriptor
Source§fn clone(&self) -> BluetoothDescriptor
fn clone(&self) -> BluetoothDescriptor
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 Debug for BluetoothDescriptor
impl Debug for BluetoothDescriptor
Source§impl Default for BluetoothDescriptor
impl Default for BluetoothDescriptor
Source§fn default() -> BluetoothDescriptor
fn default() -> BluetoothDescriptor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BluetoothDescriptor
impl<'de> Deserialize<'de> for BluetoothDescriptor
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BluetoothDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BluetoothDescriptor, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BluetoothDescriptor> for UnknownDescriptor
impl From<BluetoothDescriptor> for UnknownDescriptor
Source§fn from(d: BluetoothDescriptor) -> UnknownDescriptor
fn from(d: BluetoothDescriptor) -> UnknownDescriptor
Converts to this type from the input type.
Source§impl PartialEq for BluetoothDescriptor
impl PartialEq for BluetoothDescriptor
Source§impl Serialize for BluetoothDescriptor
impl Serialize for BluetoothDescriptor
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for BluetoothDescriptor
impl StructuralPartialEq for BluetoothDescriptor
Auto Trait Implementations§
impl Freeze for BluetoothDescriptor
impl RefUnwindSafe for BluetoothDescriptor
impl Send for BluetoothDescriptor
impl Sync for BluetoothDescriptor
impl Unpin for BluetoothDescriptor
impl UnwindSafe for BluetoothDescriptor
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