pub enum RegulatoryRegionWatcherRequest {
GetUpdate {
responder: RegulatoryRegionWatcherGetUpdateResponder,
},
GetRegionUpdate {
responder: RegulatoryRegionWatcherGetRegionUpdateResponder,
},
}
Expand description
The RegulatoryRegionWatcher protocol provides the mechanism for radio subsystems to learn the currently applicable regulatory region, and to be notified when that value changes.
Variants§
GetUpdate
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.
Fields
§
responder: RegulatoryRegionWatcherGetUpdateResponder
GetRegionUpdate
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.
Fields
Implementations§
Source§impl RegulatoryRegionWatcherRequest
impl RegulatoryRegionWatcherRequest
pub fn into_get_update( self, ) -> Option<RegulatoryRegionWatcherGetUpdateResponder>
pub fn into_get_region_update( self, ) -> Option<RegulatoryRegionWatcherGetRegionUpdateResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RegulatoryRegionWatcherRequest
impl !RefUnwindSafe for RegulatoryRegionWatcherRequest
impl Send for RegulatoryRegionWatcherRequest
impl Sync for RegulatoryRegionWatcherRequest
impl Unpin for RegulatoryRegionWatcherRequest
impl !UnwindSafe for RegulatoryRegionWatcherRequest
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