[][src]Struct btleplug::bluez::manager::Manager

pub struct Manager { /* fields omitted */ }

This struct is the interface into BlueZ. It can be used to list, manage, and connect to bluetooth adapters.

Methods

impl Manager[src]

pub fn new() -> Result<Manager>[src]

Constructs a new manager to communicate with the BlueZ system. Only one Manager should be created by your application.

pub fn adapters(&self) -> Result<Vec<Adapter>>[src]

Returns the list of adapters available on the system.

pub fn update(&self, adapter: &Adapter) -> Result<Adapter>[src]

Updates the state of an adapter.

pub fn down(&self, adapter: &Adapter) -> Result<Adapter>[src]

Disables an adapter.

pub fn up(&self, adapter: &Adapter) -> Result<Adapter>[src]

Enables an adapater.

pub fn connect(&self, adapter: &Adapter) -> Result<ConnectedAdapter>[src]

Establishes a connection to an adapter. Returns a ConnectedAdapter, which is the Central implementation for BlueZ.

Auto Trait Implementations

impl RefUnwindSafe for Manager

impl Send for Manager

impl Sync for Manager

impl Unpin for Manager

impl UnwindSafe for Manager

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, 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.