Skip to main content

GattTypes

Trait GattTypes 

Source
pub trait GattTypes: Sized {
Show 13 associated items type Central: Central<Self>; type ScanResultStream: Stream<Item = Result<ScanResult>> + 'static; type Client: Client<Self>; type ConnectFuture: Future<Output = Result<Self::Client>>; type PeerServiceHandle: PeerServiceHandle<Self>; type FindServicesFut: Future<Output = Result<Vec<Self::PeerServiceHandle>>> + 'static; type PeerService: PeerService<Self>; type ServiceConnectFut: Future<Output = Result<Self::PeerService>>; type CharacteristicDiscoveryFut: Future<Output = Result<Vec<Characteristic>>>; type NotificationStream: Stream<Item = Result<CharacteristicNotification>> + 'static; type ReadFut<'a>: Future<Output = Result<(usize, bool)>> + 'a; type WriteFut<'a>: Future<Output = Result<()>> + 'a; type PeriodicAdvertising: PeriodicAdvertising;
}
Expand description

Implementors implement traits with respect to GattTypes. Implementation crates provide an object which relates a constellation of types to each other, used to provide concrete types for library crates to paramaterize on.

Required Associated Types§

Source

type Central: Central<Self>

Source

type ScanResultStream: Stream<Item = Result<ScanResult>> + 'static

Source

type Client: Client<Self>

Source

type ConnectFuture: Future<Output = Result<Self::Client>>

Source

type PeerServiceHandle: PeerServiceHandle<Self>

Source

type FindServicesFut: Future<Output = Result<Vec<Self::PeerServiceHandle>>> + 'static

Source

type PeerService: PeerService<Self>

Source

type ServiceConnectFut: Future<Output = Result<Self::PeerService>>

Source

type CharacteristicDiscoveryFut: Future<Output = Result<Vec<Characteristic>>>

Future returned by PeerService::discover_characteristics, delivering the set of characteristics discovered within a service

Source

type NotificationStream: Stream<Item = Result<CharacteristicNotification>> + 'static

A stream of notifications, delivering updates to a characteristic value that has been subscribed to. See client::PeerService::subscribe

Source

type ReadFut<'a>: Future<Output = Result<(usize, bool)>> + 'a

Future resolving when a characteristic or descriptor has been read. Resolves to a number of bytes read along with a boolean indicating if the value was possibly truncated, or an Error if the value could not be read.

Source

type WriteFut<'a>: Future<Output = Result<()>> + 'a

Future resolving when a characteristic or descriptor has been written. Returns an error if the value could not be written.

Source

type PeriodicAdvertising: PeriodicAdvertising

The implementation of periodic advertising for this GATT implementation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§