#[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
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 canceled() -> SetupError
pub fn canceled() -> SetupError
No actual error, canceled by request.
Sourcepub fn task_errors(
errors: Vec<((usize, TaskTypeId, Txt), SetupTaskError)>,
state: SetupErrorState,
) -> SetupError
pub fn task_errors( errors: Vec<((usize, TaskTypeId, Txt), SetupTaskError)>, state: SetupErrorState, ) -> SetupError
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) -> SetupError
pub fn op_error(error: SetupTaskError, state: SetupErrorState) -> SetupError
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) -> SetupError
pub fn corrupted_op_config(config_name: &'static str) -> SetupError
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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§
§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> AnyVarValue for T
impl<T> AnyVarValue for T
Source§fn clone_boxed(&self) -> BoxAnyVarValue
fn clone_boxed(&self) -> BoxAnyVarValue
Source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
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
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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