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: MonotonicInstant,
) -> Result<RegulatoryRegionWatcherEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> 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: MonotonicInstant) -> Result<String, Error>
pub fn get_update(&self, ___deadline: MonotonicInstant) -> 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: MonotonicInstant,
) -> Result<Option<String>, Error>
pub fn get_region_update( &self, ___deadline: MonotonicInstant, ) -> 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.
Trait Implementations§
Source§impl SynchronousProxy for RegulatoryRegionWatcherSynchronousProxy
impl SynchronousProxy for RegulatoryRegionWatcherSynchronousProxy
Source§type Proxy = RegulatoryRegionWatcherProxy
type Proxy = RegulatoryRegionWatcherProxy
The async proxy for the same protocol.
Source§type Protocol = RegulatoryRegionWatcherMarker
type Protocol = RegulatoryRegionWatcherMarker
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 RegulatoryRegionWatcherSynchronousProxy
impl RefUnwindSafe for RegulatoryRegionWatcherSynchronousProxy
impl Send for RegulatoryRegionWatcherSynchronousProxy
impl Sync for RegulatoryRegionWatcherSynchronousProxy
impl Unpin for RegulatoryRegionWatcherSynchronousProxy
impl UnwindSafe for RegulatoryRegionWatcherSynchronousProxy
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