pub struct RegulatoryRegionWatcherSynchronousProxy { /* private fields */ }
Implementations§
source§impl RegulatoryRegionWatcherSynchronousProxy
impl RegulatoryRegionWatcherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<RegulatoryRegionWatcherEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<RegulatoryRegionWatcherEvent, 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 get_update(&self, ___deadline: Time) -> Result<String, Error>
pub fn get_update(&self, ___deadline: Time) -> Result<String, Error>
This call is deprecated. Use GetRegionUpdate instead.
Returns the new RegionCode, when it changes.
Notes:
- The first call returns immediately, if the region is already known.
- The client is not guaranteed to observe the effects of every call
to
SetRegion()
. - The client can, however, achieve eventual consistency by always issuing a new request when a request completes.
- Clients should not issue concurrent requests to this method.
- At present, concurrent requests
- May yield the same value, or different values.
- May complete out-of-order.
- In the future, concurrent requests will cause the channel to be
closed with
ZX_ERR_BAD_STATE
.
- At present, concurrent requests
- response
new_region
the current regulatory region.
sourcepub fn get_region_update(
&self,
___deadline: Time
) -> Result<Option<String>, Error>
pub fn get_region_update( &self, ___deadline: Time ) -> Result<Option<String>, Error>
Returns the new RegionCode, when it changes.
Notes:
- The first call returns immediately.
- The client is not guaranteed to observe the effects of every call
to
SetRegion()
. - The client can, however, achieve eventual consistency by always issuing a new request when a request completes.
- Clients should not issue concurrent requests to this method.
- At present, concurrent requests
- May yield the same value, or different values.
- May complete out-of-order.
- In the future, concurrent requests will cause the channel to be
closed with
ZX_ERR_BAD_STATE
.
- At present, concurrent requests
- response
new_region
the current regulatory region.