pub struct Central { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Central<FuchsiaTypes> for Central
impl Central<FuchsiaTypes> for Central
Source§fn scan(&self, filters: &[ScanFilter]) -> ScanResultStream
fn scan(&self, filters: &[ScanFilter]) -> ScanResultStream
Scan for peers.
If any of the filters match, the results will be returned in the Stream.
Source§fn periodic_advertising(
&self,
) -> Result<<FuchsiaTypes as GattTypes>::PeriodicAdvertising>
fn periodic_advertising( &self, ) -> Result<<FuchsiaTypes as GattTypes>::PeriodicAdvertising>
Get API for periodic advertising.
Source§fn connect(&self, peer_id: PeerId) -> <FuchsiaTypes as GattTypes>::ConnectFuture
fn connect(&self, peer_id: PeerId) -> <FuchsiaTypes as GattTypes>::ConnectFuture
Connect to a specific peer.
Auto Trait Implementations§
impl Freeze for Central
impl !RefUnwindSafe for Central
impl Send for Central
impl Sync for Central
impl Unpin for Central
impl UnsafeUnpin for Central
impl !UnwindSafe for Central
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more