pub struct PeriodicAdvertisingSyncSynchronousProxy { /* private fields */ }
Implementations§
Source§impl PeriodicAdvertisingSyncSynchronousProxy
impl PeriodicAdvertisingSyncSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PeriodicAdvertisingSyncEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PeriodicAdvertisingSyncEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn watch_advertising_report(
&self,
___deadline: MonotonicInstant,
) -> Result<PeriodicAdvertisingSyncWatchAdvertisingReportResponse, Error>
pub fn watch_advertising_report( &self, ___deadline: MonotonicInstant, ) -> Result<PeriodicAdvertisingSyncWatchAdvertisingReportResponse, Error>
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,
___deadline: MonotonicInstant,
) -> Result<PeriodicAdvertisingSyncSyncToSubeventsResult, Error>
pub fn sync_to_subevents( &self, payload: &PeriodicAdvertisingSyncSyncToSubeventsRequest, ___deadline: MonotonicInstant, ) -> Result<PeriodicAdvertisingSyncSyncToSubeventsResult, Error>
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 From<Channel> for PeriodicAdvertisingSyncSynchronousProxy
impl From<Channel> for PeriodicAdvertisingSyncSynchronousProxy
Source§impl From<PeriodicAdvertisingSyncSynchronousProxy> for Handle
impl From<PeriodicAdvertisingSyncSynchronousProxy> for Handle
Source§fn from(value: PeriodicAdvertisingSyncSynchronousProxy) -> Self
fn from(value: PeriodicAdvertisingSyncSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for PeriodicAdvertisingSyncSynchronousProxy
impl FromClient for PeriodicAdvertisingSyncSynchronousProxy
Source§type Protocol = PeriodicAdvertisingSyncMarker
type Protocol = PeriodicAdvertisingSyncMarker
The protocol.
Source§fn from_client(value: ClientEnd<PeriodicAdvertisingSyncMarker>) -> Self
fn from_client(value: ClientEnd<PeriodicAdvertisingSyncMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for PeriodicAdvertisingSyncSynchronousProxy
impl SynchronousProxy for PeriodicAdvertisingSyncSynchronousProxy
Source§type Proxy = PeriodicAdvertisingSyncProxy
type Proxy = PeriodicAdvertisingSyncProxy
The async proxy for the same protocol.
Source§type Protocol = PeriodicAdvertisingSyncMarker
type Protocol = PeriodicAdvertisingSyncMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for PeriodicAdvertisingSyncSynchronousProxy
impl RefUnwindSafe for PeriodicAdvertisingSyncSynchronousProxy
impl Send for PeriodicAdvertisingSyncSynchronousProxy
impl Sync for PeriodicAdvertisingSyncSynchronousProxy
impl Unpin for PeriodicAdvertisingSyncSynchronousProxy
impl UnwindSafe for PeriodicAdvertisingSyncSynchronousProxy
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