[][src]Struct btleplug::bluez::adapter::Adapter

pub struct Adapter {
    pub name: String,
    pub dev_id: u16,
    pub addr: BDAddr,
    pub typ: AdapterType,
    pub states: HashSet<AdapterState>,
    pub info: HCIDevInfo,
}

Adapter represents a physical bluetooth interface in your system, for example a bluetooth dongle.

Fields

name: String

The name of the adapter.

dev_id: u16

The device id of the adapter.

addr: BDAddr

The address of the adapter.

typ: AdapterType

The type of the adapater.

states: HashSet<AdapterState>

The set of states that the adapater is in.

info: HCIDevInfo

Properties of the adapter.

Implementations

impl Adapter[src]

pub fn from_device_info(di: &HCIDevInfo) -> Adapter[src]

pub fn from_dev_id(ctl: i32, dev_id: u16) -> Result<Adapter>[src]

pub fn is_up(&self) -> bool[src]

pub fn connect(&self) -> Result<ConnectedAdapter>[src]

Trait Implementations

impl Clone for Adapter[src]

impl Debug for Adapter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.