pub struct Advertiser<'d, C, P: PacketPool> { /* private fields */ }
Expand description
Handle to an active advertiser which can accept connections.
Implementations§
Source§impl<'d, C: Controller, P: PacketPool> Advertiser<'d, C, P>
impl<'d, C: Controller, P: PacketPool> Advertiser<'d, C, P>
Sourcepub async fn accept(self) -> Result<Connection<'d, P>, Error>
pub async fn accept(self) -> Result<Connection<'d, P>, Error>
Accept the next peripheral connection for this advertiser.
Returns Error::Timeout if advertiser stopped.
Trait Implementations§
Source§impl<C, P: PacketPool> Drop for Advertiser<'_, C, P>
impl<C, P: PacketPool> Drop for Advertiser<'_, C, P>
Auto Trait Implementations§
impl<'d, C, P> Freeze for Advertiser<'d, C, P>
impl<'d, C, P> !RefUnwindSafe for Advertiser<'d, C, P>
impl<'d, C, P> !Send for Advertiser<'d, C, P>
impl<'d, C, P> !Sync for Advertiser<'d, C, P>
impl<'d, C, P> Unpin for Advertiser<'d, C, P>
impl<'d, C, P> !UnwindSafe for Advertiser<'d, 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