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
Fields
§
responder: RegulatoryRegionWatcherGetUpdateResponder
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.
GetRegionUpdate
Fields
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.
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