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§
source§impl Debug for UpdateProgress
impl Debug for UpdateProgress
source§impl<'de> Deserialize<'de> for UpdateProgress
impl<'de> Deserialize<'de> for UpdateProgress
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
Auto Trait Implementations§
impl Freeze for UpdateProgress
impl RefUnwindSafe for UpdateProgress
impl Send for UpdateProgress
impl Sync for UpdateProgress
impl Unpin for UpdateProgress
impl UnwindSafe for UpdateProgress
Blanket Implementations§
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<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more