pub struct PeriodicAdvertisingSyncProxy { /* private fields */ }Implementations§
Source§impl PeriodicAdvertisingSyncProxy
 
impl PeriodicAdvertisingSyncProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
 
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.bluetooth.le/PeriodicAdvertisingSync.
Sourcepub fn take_event_stream(&self) -> PeriodicAdvertisingSyncEventStream
 
pub fn take_event_stream(&self) -> PeriodicAdvertisingSyncEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn watch_advertising_report(
    &self,
) -> QueryResponseFut<PeriodicAdvertisingSyncWatchAdvertisingReportResponse, DefaultFuchsiaResourceDialect>
 
pub fn watch_advertising_report( &self, ) -> QueryResponseFut<PeriodicAdvertisingSyncWatchAdvertisingReportResponse, DefaultFuchsiaResourceDialect>
Returns the next advertising report(s). Hangs until the next advertisement is received. Only one call may be pending at a time.
Sourcepub fn sync_to_subevents(
    &self,
    payload: &PeriodicAdvertisingSyncSyncToSubeventsRequest,
) -> QueryResponseFut<PeriodicAdvertisingSyncSyncToSubeventsResult, DefaultFuchsiaResourceDialect>
 
pub fn sync_to_subevents( &self, payload: &PeriodicAdvertisingSyncSyncToSubeventsRequest, ) -> QueryResponseFut<PeriodicAdvertisingSyncSyncToSubeventsResult, DefaultFuchsiaResourceDialect>
Synchronize to subevents of this periodic advertisement.
- error FAILED: The synchronization failed.
 
Sourcepub fn cancel(&self) -> Result<(), Error>
 
pub fn cancel(&self) -> Result<(), Error>
The server will end the synchronization and then close the protocol. Synchronization will not be cancelled if other clients are synchronized to the same Periodic Advertisement. Synchronization can also be cancelled by closing the protocol on the client end.
Trait Implementations§
Source§impl Clone for PeriodicAdvertisingSyncProxy
 
impl Clone for PeriodicAdvertisingSyncProxy
Source§fn clone(&self) -> PeriodicAdvertisingSyncProxy
 
fn clone(&self) -> PeriodicAdvertisingSyncProxy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for PeriodicAdvertisingSyncProxy
 
impl Debug for PeriodicAdvertisingSyncProxy
Source§impl PeriodicAdvertisingSyncProxyInterface for PeriodicAdvertisingSyncProxy
 
impl PeriodicAdvertisingSyncProxyInterface for PeriodicAdvertisingSyncProxy
type WatchAdvertisingReportResponseFut = QueryResponseFut<PeriodicAdvertisingSyncWatchAdvertisingReportResponse>
type SyncToSubeventsResponseFut = QueryResponseFut<Result<(), i32>>
fn watch_advertising_report(&self) -> Self::WatchAdvertisingReportResponseFut
fn sync_to_subevents( &self, payload: &PeriodicAdvertisingSyncSyncToSubeventsRequest, ) -> Self::SyncToSubeventsResponseFut
fn cancel(&self) -> Result<(), Error>
Source§impl Proxy for PeriodicAdvertisingSyncProxy
 
impl Proxy for PeriodicAdvertisingSyncProxy
Source§type Protocol = PeriodicAdvertisingSyncMarker
 
type Protocol = PeriodicAdvertisingSyncMarker
The protocol which this 
Proxy controls.Source§fn from_channel(inner: AsyncChannel) -> Self
 
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
 
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
Source§fn as_channel(&self) -> &AsyncChannel
 
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for PeriodicAdvertisingSyncProxy
impl !RefUnwindSafe for PeriodicAdvertisingSyncProxy
impl Send for PeriodicAdvertisingSyncProxy
impl Sync for PeriodicAdvertisingSyncProxy
impl Unpin for PeriodicAdvertisingSyncProxy
impl !UnwindSafe for PeriodicAdvertisingSyncProxy
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> FromClient for Twhere
    T: Proxy,
 
impl<T> FromClient for Twhere
    T: Proxy,
§impl<T> Pointable for T
 
impl<T> Pointable for T
Source§impl<T> ProxyHasDomain for Twhere
    T: Proxy,
 
impl<T> ProxyHasDomain for Twhere
    T: Proxy,
Source§fn domain(&self) -> ZirconClient
 
fn domain(&self) -> ZirconClient
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.