#[non_exhaustive]pub struct SetupError {
pub op_error: Option<SetupTaskError>,
pub task_errors: Vec<((usize, TaskTypeId, Txt), SetupTaskError)>,
pub state: SetupErrorState,
}Expand description
Represents a SETUP operation error.
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.op_error: Option<SetupTaskError>Error associated with operation itself that affects all tasks.
This is often SetupTaskError::CorruptedTaskData detected
task_errors: Vec<((usize, TaskTypeId, Txt), SetupTaskError)>Errors associated with a task in the operation.
Each task is identified by index on the operation, type and name.
state: SetupErrorStateOperation state after not completing successfully.
Implementations§
Source§impl SetupError
impl SetupError
Sourcepub fn task_errors(
errors: Vec<((usize, TaskTypeId, Txt), SetupTaskError)>,
state: SetupErrorState,
) -> Self
pub fn task_errors( errors: Vec<((usize, TaskTypeId, Txt), SetupTaskError)>, state: SetupErrorState, ) -> Self
One or more tasks failed.
Each task is identified by index on the operation, type and name.
If the tasks managed to reverse all changes before committing the state must be Canceled.
Sourcepub fn op_error(error: SetupTaskError, state: SetupErrorState) -> Self
pub fn op_error(error: SetupTaskError, state: SetupErrorState) -> Self
Operation failed with error associated with operation itself that affects all tasks.
If the error is detected before any task runs and any non-destructive change was made the state must be Canceled.
Sourcepub fn corrupted_op_config(config_name: &'static str) -> Self
pub fn corrupted_op_config(config_name: &'static str) -> Self
Operation cannot start due to corrupted config data.
Trait Implementations§
Source§impl Clone for SetupError
impl Clone for SetupError
Source§fn clone(&self) -> SetupError
fn clone(&self) -> SetupError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetupError
impl Debug for SetupError
Source§impl PartialEq for SetupError
impl PartialEq for SetupError
Source§fn eq(&self, other: &SetupError) -> bool
fn eq(&self, other: &SetupError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SetupError
Auto Trait Implementations§
impl !RefUnwindSafe for SetupError
impl !UnwindSafe for SetupError
impl Freeze for SetupError
impl Send for SetupError
impl Sync for SetupError
impl Unpin for SetupError
impl UnsafeUnpin for SetupError
Blanket Implementations§
Source§impl<T> AnyVarValue for T
impl<T> AnyVarValue for T
Source§fn clone_boxed(&self) -> BoxAnyVarValue
fn clone_boxed(&self) -> BoxAnyVarValue
Clone the value.
Source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
Gets if
self and other are equal.Source§fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
Swap value with
other if both are of the same type.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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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