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