pub struct BroadcastAssistant<T: GattTypes> { /* private fields */ }
Implementations§
Source§impl<T: GattTypes + 'static> BroadcastAssistant<T>
impl<T: GattTypes + 'static> BroadcastAssistant<T>
pub fn new(central: T::Central) -> Self
Sourcepub fn start(&mut self) -> Result<EventStream<T>, Error>
pub fn start(&mut self) -> Result<EventStream<T>, Error>
Start broadcast assistant. Returns EventStream that the upper layer can poll. Upper layer can call methods on BroadcastAssistant based on the events it sees.
pub fn scan_for_scan_delegators(&mut self) -> Result<T::ScanResultStream, Error>
pub async fn connect_to_scan_delegator(
&self,
peer_id: PeerId,
) -> Result<Peer<T>, Error>where
<T as GattTypes>::NotificationStream: Send,
pub fn force_discover_broadcast_source( &self, peer_id: PeerId, address: [u8; 6], address_type: AddressType, advertising_sid: AdvertisingSetId, ) -> Result<BroadcastSource, Error>
pub fn force_discover_broadcast_source_metadata( &self, peer_id: PeerId, big_metadata: Vec<Vec<Metadata>>, ) -> Result<BroadcastSource, Error>
pub fn known_broadcast_sources(&self) -> HashMap<PeerId, BroadcastSource>
Auto Trait Implementations§
impl<T> Freeze for BroadcastAssistant<T>where
<T as GattTypes>::Central: Freeze,
impl<T> !RefUnwindSafe for BroadcastAssistant<T>
impl<T> Send for BroadcastAssistant<T>where
<T as GattTypes>::Central: Send,
impl<T> Sync for BroadcastAssistant<T>where
<T as GattTypes>::Central: Sync,
impl<T> Unpin for BroadcastAssistant<T>where
<T as GattTypes>::Central: Unpin,
impl<T> !UnwindSafe for BroadcastAssistant<T>
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