Trait PeriodicAdvertising

Source
pub trait PeriodicAdvertising {
    type SyncFut: Future<Output = Result<Self::SyncStream>>;
    type SyncStream: Stream<Item = Result<SyncReport>>;

    // Required method
    fn sync_to_advertising_reports(
        peer_id: PeerId,
        advertising_sid: u8,
        config: SyncConfiguration,
    ) -> Self::SyncFut;
}
Expand description

A trait for managing a periodic advertising.

Required Associated Types§

Source

type SyncFut: Future<Output = Result<Self::SyncStream>>

Source

type SyncStream: Stream<Item = Result<SyncReport>>

Required Methods§

Source

fn sync_to_advertising_reports( 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§