pub enum Descriptor {
Bluetooth(BluetoothDescriptor),
Lan(LanDescriptor),
Unknown(UnknownDescriptor),
}Expand description
A transport descriptor
Variants§
Bluetooth(BluetoothDescriptor)
A Bluetooth transport descriptor
Lan(LanDescriptor)
A LAN transport descriptor
Unknown(UnknownDescriptor)
An unknown transport descriptor
Implementations§
Source§impl Descriptor
impl Descriptor
Sourcepub fn bluetooth() -> Descriptor
pub fn bluetooth() -> Descriptor
Creates a new Bluetooth transport descriptor without a known address.
Sourcepub fn bluetooth_address(address: [u8; 6]) -> Descriptor
pub fn bluetooth_address(address: [u8; 6]) -> Descriptor
Creates a new Bluetooth transport descriptor with a known address.
Trait Implementations§
Source§impl Clone for Descriptor
impl Clone for Descriptor
Source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
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 Descriptor
impl Debug for Descriptor
Source§impl<'de> Deserialize<'de> for Descriptor
impl<'de> Deserialize<'de> for Descriptor
Source§fn deserialize<D>(de: D) -> Result<Descriptor, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(de: D) -> Result<Descriptor, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Descriptor
impl PartialEq for Descriptor
Source§impl Serialize for Descriptor
impl Serialize for Descriptor
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 StructuralPartialEq for Descriptor
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
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