pub trait PeriodicAdvertising {
type SyncFut: Future<Output = Result<Self::SyncStream>>;
type SyncStream: Stream<Item = Result<SyncReport>>;
// Required method
fn sync_to_advertising_reports(
&self,
peer_id: PeerId,
advertising_sid: u8,
config: SyncConfiguration,
) -> Self::SyncFut;
}Expand description
A trait for managing a periodic advertising.
Required Associated Types§
type SyncFut: Future<Output = Result<Self::SyncStream>>
type SyncStream: Stream<Item = Result<SyncReport>>
Required Methods§
Sourcefn sync_to_advertising_reports(
&self,
peer_id: PeerId,
advertising_sid: u8,
config: SyncConfiguration,
) -> Self::SyncFut
fn sync_to_advertising_reports( &self, peer_id: PeerId, advertising_sid: u8, config: SyncConfiguration, ) -> Self::SyncFut
Request to sync to periodic advertising resports. On success, returns the SyncStream which can be used to receive SyncReports.