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, DefaultFuchsiaResourceDialect>
pub fn get_current( &self, ) -> QueryResponseFut<String, DefaultFuchsiaResourceDialect>
Retrieve the currently active update channel.
- response
channel
the currently active update channel.
Sourcepub fn set_target(
&self,
channel: &str,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn set_target( &self, channel: &str, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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, DefaultFuchsiaResourceDialect>
pub fn get_target( &self, ) -> QueryResponseFut<String, DefaultFuchsiaResourceDialect>
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>, DefaultFuchsiaResourceDialect>
pub fn get_target_list( &self, ) -> QueryResponseFut<Vec<String>, DefaultFuchsiaResourceDialect>
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>
type SetTargetResponseFut = QueryResponseFut<()>
type GetTargetResponseFut = QueryResponseFut<String>
type GetTargetListResponseFut = QueryResponseFut<Vec<String>>
fn get_current(&self) -> Self::GetCurrentResponseFut
fn set_target(&self, channel: &str) -> Self::SetTargetResponseFut
fn get_target(&self) -> Self::GetTargetResponseFut
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
Source§type Protocol = ChannelControlMarker
type Protocol = ChannelControlMarker
Proxy
controls.