[][src]Struct btleplug::api::AdapterManager

pub struct AdapterManager<PeripheralType> where
    PeripheralType: Peripheral
{ /* fields omitted */ }

Implementations

impl<PeripheralType> AdapterManager<PeripheralType> where
    PeripheralType: Peripheral + 'static, 
[src]

pub fn new() -> Self[src]

pub fn emit(&self, event: CentralEvent)[src]

pub fn event_receiver(&self) -> Option<Receiver<CentralEvent>>[src]

pub fn has_peripheral(&self, addr: &BDAddr) -> bool[src]

pub fn add_peripheral(&self, addr: BDAddr, peripheral: PeripheralType)[src]

pub fn update_peripheral(&self, addr: BDAddr, peripheral: PeripheralType)[src]

pub fn peripherals(&self) -> Vec<PeripheralType>[src]

pub fn peripheral(&self, address: BDAddr) -> Option<PeripheralType>[src]

Trait Implementations

impl<PeripheralType: Clone> Clone for AdapterManager<PeripheralType> where
    PeripheralType: Peripheral
[src]

impl<PeripheralType: Debug> Debug for AdapterManager<PeripheralType> where
    PeripheralType: Peripheral
[src]

Auto Trait Implementations

impl<PeripheralType> !RefUnwindSafe for AdapterManager<PeripheralType>[src]

impl<PeripheralType> Send for AdapterManager<PeripheralType>[src]

impl<PeripheralType> Sync for AdapterManager<PeripheralType>[src]

impl<PeripheralType> Unpin for AdapterManager<PeripheralType>[src]

impl<PeripheralType> !UnwindSafe for AdapterManager<PeripheralType>[src]

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.