Struct souk::shared::task::TaskProgress
source · pub struct TaskProgress {
pub index: u32,
pub operation_kind: FlatpakOperationKind,
pub status: TaskStatus,
pub progress: i32,
pub download_rate: u64,
pub package: Optional<PackageInfo>,
}
Fields§
§index: u32
A task can consist of several steps. The index indicates for which step this progress information is.
operation_kind: FlatpakOperationKind
§status: TaskStatus
§progress: i32
§download_rate: u64
§package: Optional<PackageInfo>
Implementations§
source§impl TaskProgress
impl TaskProgress
pub fn new_flatpak(
transaction: &Transaction,
operation: &TransactionOperation,
op_progress: Option<&TransactionProgress>,
is_done: bool
) -> Self
Trait Implementations§
source§impl Clone for TaskProgress
impl Clone for TaskProgress
source§fn clone(&self) -> TaskProgress
fn clone(&self) -> TaskProgress
Returns a copy of the value. Read more
1.0.0 · 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 TaskProgress
impl Debug for TaskProgress
source§impl Default for TaskProgress
impl Default for TaskProgress
source§impl<'de> Deserialize<'de> for TaskProgress
impl<'de> Deserialize<'de> for TaskProgress
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TaskProgress> for TaskProgress
impl PartialEq<TaskProgress> for TaskProgress
source§fn eq(&self, other: &TaskProgress) -> bool
fn eq(&self, other: &TaskProgress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TaskProgress
impl Serialize for TaskProgress
source§impl Type for TaskProgress
impl Type for TaskProgress
impl StructuralPartialEq for TaskProgress
Auto Trait Implementations§
impl RefUnwindSafe for TaskProgress
impl Send for TaskProgress
impl Sync for TaskProgress
impl Unpin for TaskProgress
impl UnwindSafe for TaskProgress
Blanket Implementations§
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere
T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.