[−][src]Struct btleplug::api::AdapterManager
Implementations
impl<PeripheralType> AdapterManager<PeripheralType> where
PeripheralType: Peripheral + 'static,
[src]
PeripheralType: Peripheral + 'static,
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]
PeripheralType: Peripheral,
fn clone(&self) -> AdapterManager<PeripheralType>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<PeripheralType: Debug> Debug for AdapterManager<PeripheralType> where
PeripheralType: Peripheral,
[src]
PeripheralType: Peripheral,
Auto Trait Implementations
impl<PeripheralType> !RefUnwindSafe for AdapterManager<PeripheralType>
impl<PeripheralType> Send for AdapterManager<PeripheralType>
impl<PeripheralType> Sync for AdapterManager<PeripheralType>
impl<PeripheralType> Unpin for AdapterManager<PeripheralType>
impl<PeripheralType> !UnwindSafe for AdapterManager<PeripheralType>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,