pub struct Central<'stack, C> { /* private fields */ }
Expand description
A type implementing the BLE central role.
Implementations§
Source§impl<'stack, C: Controller> Central<'stack, C>
impl<'stack, C: Controller> Central<'stack, C>
Sourcepub async fn connect(
&mut self,
config: &ConnectConfig<'_>,
) -> Result<Connection<'stack>, BleHostError<C::Error>>
pub async fn connect( &mut self, config: &ConnectConfig<'_>, ) -> Result<Connection<'stack>, BleHostError<C::Error>>
Attempt to create a connection with the provided config.
Sourcepub async fn connect_ext(
&mut self,
config: &ConnectConfig<'_>,
) -> Result<Connection<'stack>, BleHostError<C::Error>>
pub async fn connect_ext( &mut self, config: &ConnectConfig<'_>, ) -> Result<Connection<'stack>, BleHostError<C::Error>>
Attempt to create a connection with the provided config.
Auto Trait Implementations§
impl<'stack, C> Freeze for Central<'stack, C>
impl<'stack, C> !RefUnwindSafe for Central<'stack, C>
impl<'stack, C> !Send for Central<'stack, C>
impl<'stack, C> !Sync for Central<'stack, C>
impl<'stack, C> Unpin for Central<'stack, C>
impl<'stack, C> !UnwindSafe for Central<'stack, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more