pub enum ChannelControlRequest {
GetCurrent {
responder: ChannelControlGetCurrentResponder,
},
SetTarget {
channel: String,
responder: ChannelControlSetTargetResponder,
},
GetTarget {
responder: ChannelControlGetTargetResponder,
},
GetTargetList {
responder: ChannelControlGetTargetListResponder,
},
}
Expand description
Control the target update channel, this is the channel we will use on the next update check.
Variants§
GetCurrent
Retrieve the currently active update channel.
- response
channel
the currently active update channel.
Fields
responder: ChannelControlGetCurrentResponder
SetTarget
Set a new desired target channel. This tells the updater to attempt to check for updates using a new channel. This is tentative, and won’t be persisted unless an update check on that channel is successful.
A response is generated when the new target channel has been verified as valid.
- request
channel
the new target channel name (name used by the updater)
GetTarget
Get the current tentative target channel for updates. This returns the channel that the update client is using to perform update checks. It’s always one of:
-
the current channel
-
the default channel
-
a new target that’s different, but hasn’t been OTA’d from yet.
-
response
channel
the current target channel.
Fields
responder: ChannelControlGetTargetResponder
GetTargetList
Get the list of well-known target channels that can be passed to SetTarget(). There may be other, unlisted channels.
Fields
responder: ChannelControlGetTargetListResponder
Implementations§
Source§impl ChannelControlRequest
impl ChannelControlRequest
pub fn into_get_current(self) -> Option<ChannelControlGetCurrentResponder>
pub fn into_set_target( self, ) -> Option<(String, ChannelControlSetTargetResponder)>
pub fn into_get_target(self) -> Option<ChannelControlGetTargetResponder>
pub fn into_get_target_list( self, ) -> Option<ChannelControlGetTargetListResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL