#[non_exhaustive]pub struct SetupOpStatus {
pub cancel: bool,
pub task: (TaskTypeId, Txt),
pub progress: (usize, usize),
pub task_progress: VarEq<Progress>,
pub errors: Vec<((usize, TaskTypeId, Txt), SetupTaskError)>,
}Expand description
Represents status of a SETUP install or uninstall operation.
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.cancel: boolIs cancelling.
task: (TaskTypeId, Txt)Current task.
progress: (usize, usize)Task index of len.
task_progress: VarEq<Progress>Progress report from task.
errors: Vec<((usize, TaskTypeId, Txt), SetupTaskError)>Errors.
The task is identified by index, type and name.
Implementations§
Source§impl SetupOpStatus
impl SetupOpStatus
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
If progress is last task and task_progress is complete.
Note that tasks report completion on error.
Sourcepub fn is_canceled(&self) -> bool
pub fn is_canceled(&self) -> bool
If cancel and is_complete.
If this is true and errors is not empty the tasks managed to cleanup and the install is not corrupted.
Sourcepub fn is_corrupted(&self) -> bool
pub fn is_corrupted(&self) -> bool
If is_complete, not cancel and has errors.
If this is true the tasks did not manage to cleanup and the install is in a corrupted state.
Trait Implementations§
Source§impl Clone for SetupOpStatus
impl Clone for SetupOpStatus
Source§fn clone(&self) -> SetupOpStatus
fn clone(&self) -> SetupOpStatus
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 SetupOpStatus
impl Debug for SetupOpStatus
Source§impl PartialEq for SetupOpStatus
impl PartialEq for SetupOpStatus
Source§fn eq(&self, other: &SetupOpStatus) -> bool
fn eq(&self, other: &SetupOpStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SetupOpStatus
Auto Trait Implementations§
impl !Freeze for SetupOpStatus
impl !RefUnwindSafe for SetupOpStatus
impl !Unpin for SetupOpStatus
impl !UnwindSafe for SetupOpStatus
impl Send for SetupOpStatus
impl Sync for SetupOpStatus
impl UnsafeUnpin for SetupOpStatus
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
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
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&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>
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