pub struct MonitorProxy { /* private fields */ }
Implementations§
Source§impl MonitorProxy
impl MonitorProxy
Sourcepub fn take_event_stream(&self) -> MonitorEventStream
pub fn take_event_stream(&self) -> MonitorEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn on_state(
&self,
state: &State,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn on_state( &self, state: &State, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Receives a status update for this update check.
This request will be called for all state changes, skipping none. However, message delivery is throttled by the rate at which the implementation acknowledges the messages.
The throttled delivery doesn’t impact the underlying state of the
[Manager
]. It does not wait for any acknowledgements before it moves
on to the next state in its state machine. The [Manager
] will simply
queue up the states for the [Monitor
] implementation to receive.
During the installing_update state, the [Manager
] may, at its
discretion, collapse redundant information like the fraction completed,
in the event that the [Monitor
] implementation is not responding to
the OnState()
requests in a timely manner.
- request
state
The new state of the update check.
- response The implementation is ready to receive the next
State
from the [Manager
].
Trait Implementations§
Source§impl Clone for MonitorProxy
impl Clone for MonitorProxy
Source§fn clone(&self) -> MonitorProxy
fn clone(&self) -> MonitorProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MonitorProxy
impl Debug for MonitorProxy
Source§impl MonitorProxyInterface for MonitorProxy
impl MonitorProxyInterface for MonitorProxy
type OnStateResponseFut = QueryResponseFut<()>
fn on_state(&self, state: &State) -> Self::OnStateResponseFut
Source§impl Proxy for MonitorProxy
impl Proxy for MonitorProxy
Source§type Protocol = MonitorMarker
type Protocol = MonitorMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for MonitorProxy
impl !RefUnwindSafe for MonitorProxy
impl Send for MonitorProxy
impl Sync for MonitorProxy
impl Unpin for MonitorProxy
impl !UnwindSafe for MonitorProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)