pub struct FuchsiaInstaller<I = ServiceReconnector<InstallerMarker>, C = ServiceReconnector<CupMarker>> { /* private fields */ }Implementations§
Source§impl FuchsiaInstaller<ServiceReconnector<InstallerMarker>, ServiceReconnector<CupMarker>>
impl FuchsiaInstaller<ServiceReconnector<InstallerMarker>, ServiceReconnector<CupMarker>>
pub fn new(app_set: Rc<AsyncMutex<FuchsiaAppSet>>) -> Self
pub fn new_set_allow_reboot( app_set: Rc<AsyncMutex<FuchsiaAppSet>>, allow_reboot: bool, ) -> Self
Trait Implementations§
Source§impl<I, C> Installer for FuchsiaInstaller<I, C>
impl<I, C> Installer for FuchsiaInstaller<I, C>
type InstallPlan = FuchsiaInstallPlan
type Error = FuchsiaInstallError
type InstallResult = InstallResult
Source§fn perform_install<'a>(
&'a mut self,
install_plan: &'a FuchsiaInstallPlan,
observer: Option<&'a dyn ProgressObserver>,
) -> LocalBoxFuture<'a, (Self::InstallResult, Vec<AppInstallResult<Self::Error>>)>
fn perform_install<'a>( &'a mut self, install_plan: &'a FuchsiaInstallPlan, observer: Option<&'a dyn ProgressObserver>, ) -> LocalBoxFuture<'a, (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.
The returned Vec of AppInstallResult must only include apps that have an update available
and must be kept in the same order as it appears in the omaha response.
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<I, C> Freeze for FuchsiaInstaller<I, C>
impl<I = ServiceReconnector<InstallerMarker>, C = ServiceReconnector<CupMarker>> !RefUnwindSafe for FuchsiaInstaller<I, C>
impl<I = ServiceReconnector<InstallerMarker>, C = ServiceReconnector<CupMarker>> !Send for FuchsiaInstaller<I, C>
impl<I = ServiceReconnector<InstallerMarker>, C = ServiceReconnector<CupMarker>> !Sync for FuchsiaInstaller<I, C>
impl<I, C> Unpin for FuchsiaInstaller<I, C>
impl<I = ServiceReconnector<InstallerMarker>, C = ServiceReconnector<CupMarker>> !UnwindSafe for FuchsiaInstaller<I, C>
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.