Struct ble_ledly::controller::Controller
source · [−]pub struct Controller<D: Device> { /* private fields */ }Implementations
sourceimpl<D: Device> Controller<D>
impl<D: Device> Controller<D>
pub async fn new() -> Result<Controller<D>, BluetoothError>
pub async fn new_with_prefix(
prefix: &str
) -> Result<Controller<D>, BluetoothError>
pub fn ble_manager(&self) -> &Manager
pub fn list(&mut self) -> &mut Vec<D>
pub async fn device_discovery(&self) -> Result<Vec<D>, BluetoothError>
pub async fn connect(
&mut self,
led_devices: Option<Vec<D>>,
characteristics_uuid: Option<Uuid>
) -> Result<(), BluetoothError>
Auto Trait Implementations
impl<D> !RefUnwindSafe for Controller<D>
impl<D> Send for Controller<D> where
D: Send,
impl<D> Sync for Controller<D> where
D: Sync,
impl<D> Unpin for Controller<D> where
D: Unpin,
impl<D> !UnwindSafe for Controller<D>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more