#[non_exhaustive]pub struct PrepareInstallArgs<T: SetupTask> {
pub config: T::InstallConfig,
pub update: Option<T::Install>,
pub progress: Var<Progress>,
pub cancel: Var<bool>,
}Expand description
Arguments for SetupTask::prepare_install
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.config: T::InstallConfigConfig for the new installation.
update: Option<T::Install>Data from the previous installation that is being replaced with this one.
This is set if is installing over a previous installation and the same task is present on the new installation.
progress: Var<Progress>Progress indicator for the task. Starts as Progress::indeterminate by default.
cancel: Var<bool>Read-only var that is true if the user cancels the installation.
If possible check this flag often and return immediately on cancel. The prepare install step is not expected to cleanup on cancel, just return immediately.
Auto Trait Implementations§
impl<T> !Freeze for PrepareInstallArgs<T>
impl<T> !RefUnwindSafe for PrepareInstallArgs<T>
impl<T> !Unpin for PrepareInstallArgs<T>
impl<T> !UnwindSafe for PrepareInstallArgs<T>
impl<T> Send for PrepareInstallArgs<T>
impl<T> Sync for PrepareInstallArgs<T>
impl<T> UnsafeUnpin for PrepareInstallArgs<T>
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
§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