pub struct InstallTaskError<I> {
pub error: SetupTaskError,
pub clean_data: Option<I>,
}Expand description
Error in a SetupTask::install task run.
Fields§
§error: SetupTaskErrorThe error.
clean_data: Option<I>Cleanup SetupTask::Install data.
This must contain data to uninstall the partial committed changes, if there where any. Task runners may
use this to attempt a SetupTask::uninstall to cleanup the corrupted install.
In case the install is an update, this must also contain all data from the previous install that has not been invalidated by the failed install.
If this is None the task runner will show that the task corrupted the install and the changes made
cannot even be uninstalled. It will also assume that the SetupTask::PrepareInstall data was not
fully cleaned before the error.
If this is Some the task runner will assume the SetupTask::PrepareInstall is fully cleaned. The
task must attempt to run a cancel on the partial prepared data that has not committed yet, if the
error was encountered before any changes where actually committed and all prepared changes where successfully
canceled this must be set to Some value that represents an empty install that the uninstall task will
recognize and immediately return success for.
Trait Implementations§
Source§impl<I> Debug for InstallTaskError<I>
impl<I> Debug for InstallTaskError<I>
Source§impl<I> Display for InstallTaskError<I>
impl<I> Display for InstallTaskError<I>
Source§impl<I> Error for InstallTaskError<I>
impl<I> Error for InstallTaskError<I>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl<I> !RefUnwindSafe for InstallTaskError<I>
impl<I> !UnwindSafe for InstallTaskError<I>
impl<I> Freeze for InstallTaskError<I>where
I: Freeze,
impl<I> Send for InstallTaskError<I>where
I: Send,
impl<I> Sync for InstallTaskError<I>where
I: Sync,
impl<I> Unpin for InstallTaskError<I>where
I: Unpin,
impl<I> UnsafeUnpin for InstallTaskError<I>where
I: UnsafeUnpin,
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
Source§impl<T> FsChangeNote for T
impl<T> FsChangeNote for T
§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>
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>
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