pub enum MonitorRequest {
OnState {
state: State,
responder: MonitorOnStateResponder,
},
}
Expand description
Monitors a single update check.
Clients interested in receiving progress information for an update check
should implement this protocol and provide the client end to
[Manager.CheckNow
].
Variants§
OnState
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
].
Implementations§
Source§impl MonitorRequest
impl MonitorRequest
pub fn into_on_state(self) -> Option<(State, MonitorOnStateResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL