Struct ashpd::flatpak::UpdateProgress
source · [−]pub struct UpdateProgress {
pub n_ops: Option<u32>,
pub op: Option<u32>,
pub progress: Option<u32>,
pub status: Option<UpdateStatus>,
pub error: Option<String>,
pub error_message: Option<String>,
}Expand description
A response of the update progress signal.
Fields
n_ops: Option<u32>The number of operations that the update consists of.
op: Option<u32>The position of the currently active operation.
progress: Option<u32>The progress of the currently active operation, as a number between 0 and 100.
status: Option<UpdateStatus>The overall status of the update.
error: Option<String>The error name, sent when status is UpdateStatus::Failed.
error_message: Option<String>The error message, sent when status is UpdateStatus::Failed.
Trait Implementations
sourceimpl Debug for UpdateProgress
impl Debug for UpdateProgress
sourceimpl<'de> Deserialize<'de> for UpdateProgress
impl<'de> Deserialize<'de> for UpdateProgress
sourcefn 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
sourceimpl Serialize for UpdateProgress
impl Serialize for UpdateProgress
sourceimpl Type for UpdateProgress
impl Type for UpdateProgress
Auto Trait Implementations
impl RefUnwindSafe for UpdateProgress
impl Send for UpdateProgress
impl Sync for UpdateProgress
impl Unpin for UpdateProgress
impl UnwindSafe for UpdateProgress
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'de, T> DynamicDeserialize<'de> for T where
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for T where
T: Type + Deserialize<'de> + ?Sized,
type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
impl<T> DynamicType for T where
T: Type + ?Sized,
impl<T> DynamicType for T where
T: Type + ?Sized,
pub fn dynamic_signature(&self) -> Signature<'_>
pub fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more