Trait Central

Source
pub trait Central<T: GattTypes> {
    // Required methods
    fn scan(&self, filters: &[ScanFilter]) -> T::ScanResultStream;
    fn connect(&self, peer_id: PeerId) -> T::ConnectFuture;
    fn periodic_advertising(&self) -> Result<T::PeriodicAdvertising>;
}

Required Methods§

Source

fn scan(&self, filters: &[ScanFilter]) -> T::ScanResultStream

Scan for peers. If any of the filters match, the results will be returned in the Stream.

Source

fn connect(&self, peer_id: PeerId) -> T::ConnectFuture

Connect to a specific peer.

Source

fn periodic_advertising(&self) -> Result<T::PeriodicAdvertising>

Get API for periodic advertising.

Implementors§