pub struct ChannelControlProxy { /* private fields */ }
Implementations§
source§impl ChannelControlProxy
impl ChannelControlProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.update.channelcontrol/ChannelControl.
sourcepub fn take_event_stream(&self) -> ChannelControlEventStream
pub fn take_event_stream(&self) -> ChannelControlEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn get_current(&self) -> QueryResponseFut<String>
pub fn get_current(&self) -> QueryResponseFut<String>
Retrieve the currently active update channel.
- response
channel
the currently active update channel.
sourcepub fn set_target(&self, channel: &str) -> QueryResponseFut<()>
pub fn set_target(&self, channel: &str) -> QueryResponseFut<()>
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)
sourcepub fn get_target(&self) -> QueryResponseFut<String>
pub fn get_target(&self) -> QueryResponseFut<String>
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.
sourcepub fn get_target_list(&self) -> QueryResponseFut<Vec<String>>
pub fn get_target_list(&self) -> QueryResponseFut<Vec<String>>
Get the list of well-known target channels that can be passed to SetTarget(). There may be other, unlisted channels.
Trait Implementations§
source§impl ChannelControlProxyInterface for ChannelControlProxy
impl ChannelControlProxyInterface for ChannelControlProxy
type GetCurrentResponseFut = QueryResponseFut<String>
fn get_current(&self) -> Self::GetCurrentResponseFut
type SetTargetResponseFut = QueryResponseFut<()>
fn set_target(&self, channel: &str) -> Self::SetTargetResponseFut
type GetTargetResponseFut = QueryResponseFut<String>
fn get_target(&self) -> Self::GetTargetResponseFut
type GetTargetListResponseFut = QueryResponseFut<Vec<String>>
fn get_target_list(&self) -> Self::GetTargetListResponseFut
source§impl Clone for ChannelControlProxy
impl Clone for ChannelControlProxy
source§fn clone(&self) -> ChannelControlProxy
fn clone(&self) -> ChannelControlProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChannelControlProxy
impl Debug for ChannelControlProxy
source§impl Proxy for ChannelControlProxy
impl Proxy for ChannelControlProxy
§type Protocol = ChannelControlMarker
type Protocol = ChannelControlMarker
Proxy
controls.