pub struct Central<'stack, C, P: PacketPool> { /* private fields */ }
Expand description
A type implementing the BLE central role.
Implementations§
Source§impl<'stack, C: Controller, P: PacketPool> Central<'stack, C, P>
impl<'stack, C: Controller, P: PacketPool> Central<'stack, C, P>
Sourcepub async fn connect(
&mut self,
config: &ConnectConfig<'_>,
) -> Result<Connection<'stack, P>, BleHostError<C::Error>>
pub async fn connect( &mut self, config: &ConnectConfig<'_>, ) -> Result<Connection<'stack, P>, BleHostError<C::Error>>
Attempt to create a connection with the provided config.
Sourcepub async fn connect_ext(
&mut self,
config: &ConnectConfig<'_>,
) -> Result<Connection<'stack, P>, BleHostError<C::Error>>
pub async fn connect_ext( &mut self, config: &ConnectConfig<'_>, ) -> Result<Connection<'stack, P>, BleHostError<C::Error>>
Attempt to create a connection with the provided config.
Auto Trait Implementations§
impl<'stack, C, P> Freeze for Central<'stack, C, P>
impl<'stack, C, P> !RefUnwindSafe for Central<'stack, C, P>
impl<'stack, C, P> !Send for Central<'stack, C, P>
impl<'stack, C, P> !Sync for Central<'stack, C, P>
impl<'stack, C, P> Unpin for Central<'stack, C, P>
impl<'stack, C, P> !UnwindSafe for Central<'stack, C, P>
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