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, DefaultFuchsiaResourceDialect>
pub fn get_update( &self, ) -> QueryResponseFut<String, DefaultFuchsiaResourceDialect>
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>, DefaultFuchsiaResourceDialect>
pub fn get_region_update( &self, ) -> QueryResponseFut<Option<String>, DefaultFuchsiaResourceDialect>
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
Source§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
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Source§impl RegulatoryRegionWatcherProxyInterface for RegulatoryRegionWatcherProxy
impl RegulatoryRegionWatcherProxyInterface for RegulatoryRegionWatcherProxy
type GetUpdateResponseFut = QueryResponseFut<String>
type GetRegionUpdateResponseFut = QueryResponseFut<Option<String>>
fn get_update(&self) -> Self::GetUpdateResponseFut
fn get_region_update(&self) -> Self::GetRegionUpdateResponseFut
Auto Trait Implementations§
impl Freeze for RegulatoryRegionWatcherProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ProxyHasClient for Twhere
T: Proxy,
impl<T> ProxyHasClient for Twhere
T: Proxy,
§fn client(&self) -> Result<ZirconClient, Infallible>
fn client(&self) -> Result<ZirconClient, Infallible>
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.