pub struct RegulatoryRegionWatcherProxy { /* private fields */ }
Implementations§
source§impl RegulatoryRegionWatcherProxy
impl RegulatoryRegionWatcherProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.location.namedplace/RegulatoryRegionWatcher.
sourcepub fn take_event_stream(&self) -> RegulatoryRegionWatcherEventStream
pub fn take_event_stream(&self) -> RegulatoryRegionWatcherEventStream
Get a Stream of events from the remote end of the protocol.
Panics
Panics if the event stream was already taken.
sourcepub fn get_update(&self) -> QueryResponseFut<String>
pub fn get_update(&self) -> QueryResponseFut<String>
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) -> QueryResponseFut<Option<String>>
pub fn get_region_update(&self) -> QueryResponseFut<Option<String>>
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 Clone for RegulatoryRegionWatcherProxy
impl Clone for RegulatoryRegionWatcherProxy
source§fn clone(&self) -> RegulatoryRegionWatcherProxy
fn clone(&self) -> RegulatoryRegionWatcherProxy
Returns a copy 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 RegulatoryRegionWatcherProxy
impl Debug for RegulatoryRegionWatcherProxy
source§impl Proxy for RegulatoryRegionWatcherProxy
impl Proxy for RegulatoryRegionWatcherProxy
§type Protocol = RegulatoryRegionWatcherMarker
type Protocol = RegulatoryRegionWatcherMarker
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
source§impl RegulatoryRegionWatcherProxyInterface for RegulatoryRegionWatcherProxy
impl RegulatoryRegionWatcherProxyInterface for RegulatoryRegionWatcherProxy
type GetUpdateResponseFut = QueryResponseFut<String>
fn get_update(&self) -> Self::GetUpdateResponseFut
type GetRegionUpdateResponseFut = QueryResponseFut<Option<String>>
fn get_region_update(&self) -> Self::GetRegionUpdateResponseFut
Auto Trait Implementations§
impl !RefUnwindSafe for RegulatoryRegionWatcherProxy
impl Send for RegulatoryRegionWatcherProxy
impl Sync for RegulatoryRegionWatcherProxy
impl Unpin for RegulatoryRegionWatcherProxy
impl !UnwindSafe for RegulatoryRegionWatcherProxy
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