[−][src]Struct btleplug::bluez::manager::Manager
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]
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, 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>,