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

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StubInstaller

source§

fn default() -> StubInstaller

Returns the “default value” for a type. Read more
source§

impl Installer for StubInstaller

source§

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>>

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>>

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§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Unless for T

source§

fn unless(self, option: Option<T>) -> T

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more