pub enum MonitorRequest {
OnState {
state: State,
responder: MonitorOnStateResponder,
},
}
Expand description
Monitors a single update installation attempt.
Clients interested in receiving progress information for an update attempt
should implement this protocol and provide the client end to
[Installer.StartUpdate
] or [Installer.MonitorUpdate
].
Variants§
OnState
Receives a status update for this installation attempt.
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
[Installer
]. It does not wait for any acknowledgements before it
moves on to the next state in its state machine. The [Installer
] will
simply queue up the states for the [Monitor
] implementor to receive.
During states with data that changes as the updage progress, the
[Installer
] 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 installation attempt.
- response The implementation is ready to receive the next
State
from the [Installer
].
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