pub struct StubInstaller {
pub should_fail: bool,
}
Expand description
The Installer is responsible for performing (or triggering) the installation of the update that’s referred to by the InstallPlan.
Fields§
§should_fail: bool
Trait Implementations§
Source§impl Debug for StubInstaller
impl Debug for StubInstaller
Source§impl Default for StubInstaller
impl Default for StubInstaller
Source§fn default() -> StubInstaller
fn default() -> StubInstaller
Returns the “default value” for a type. Read more
Source§impl Installer for StubInstaller
impl Installer for StubInstaller
Source§fn perform_install(
&mut self,
_install_plan: &StubPlan,
_observer: Option<&dyn ProgressObserver>,
) -> LocalBoxFuture<'_, (Self::InstallResult, Vec<AppInstallResult<Self::Error>>)>
fn perform_install( &mut self, _install_plan: &StubPlan, _observer: Option<&dyn ProgressObserver>, ) -> LocalBoxFuture<'_, (Self::InstallResult, Vec<AppInstallResult<Self::Error>>)>
Perform the installation as given by the install plan (as parsed form the Omaha server response). If given, provide progress via the observer, and a final finished or Error indication via the Future.
type InstallPlan = StubPlan
type Error = StubInstallErrors
type InstallResult = ()
Source§fn perform_reboot(&mut self) -> LocalBoxFuture<'_, Result<(), Error>>
fn perform_reboot(&mut self) -> LocalBoxFuture<'_, Result<(), Error>>
Perform a reboot of the system (in whichever manner that the installer needs to perform
a reboot. This fn should not return unless reboot failed.
Source§fn try_create_install_plan<'a>(
&'a self,
_request_params: &'a RequestParams,
_request_metadata: Option<&'a RequestMetadata>,
response: &'a Response,
_response_bytes: Vec<u8>,
_ecdsa_signature: Option<Vec<u8>>,
) -> LocalBoxFuture<'a, Result<Self::InstallPlan, Self::Error>>
fn try_create_install_plan<'a>( &'a self, _request_params: &'a RequestParams, _request_metadata: Option<&'a RequestMetadata>, response: &'a Response, _response_bytes: Vec<u8>, _ecdsa_signature: Option<Vec<u8>>, ) -> LocalBoxFuture<'a, Result<Self::InstallPlan, Self::Error>>
Try to create a new Plan from the given response, returning a Error if unable to do so.
For update with multiple apps, the install plan must keep the order of the apps from the
response.
Auto Trait Implementations§
impl Freeze for StubInstaller
impl RefUnwindSafe for StubInstaller
impl Send for StubInstaller
impl Sync for StubInstaller
impl Unpin for StubInstaller
impl UnwindSafe for StubInstaller
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
Mutably borrows from an owned value. Read more