pub struct UpdateStatus {Show 13 fields
pub last_check: Option<DateTime<Utc>>,
pub update_available: bool,
pub current_version: String,
pub available_version: Option<String>,
pub download_progress: Option<f32>,
pub installation_status: InstallationStatus,
pub update_channel: UpdateChannel,
pub update_size: Option<u64>,
pub release_notes: Option<String>,
pub requires_restart: bool,
pub download_speed: Option<f64>,
pub eta_seconds: Option<u64>,
pub last_error: Option<String>,
}Expand description
Update status with comprehensive state tracking
Fields§
§last_check: Option<DateTime<Utc>>Last time updates were checked
update_available: boolWhether an update is available
current_version: StringCurrent installed version
available_version: Option<String>Available version (if any)
download_progress: Option<f32>Download progress (0.0 to 100.0)
installation_status: InstallationStatusCurrent installation status
update_channel: UpdateChannelUpdate channel being used
update_size: Option<u64>Size of available update in bytes
release_notes: Option<String>Release notes for available update
requires_restart: boolWhether update requires restart
download_speed: Option<f64>Download speed in bytes per second
eta_seconds: Option<u64>Estimated time remaining in seconds
last_error: Option<String>Last error message (if any)
Trait Implementations§
Source§impl Clone for UpdateStatus
impl Clone for UpdateStatus
Source§fn clone(&self) -> UpdateStatus
fn clone(&self) -> UpdateStatus
Returns a duplicate 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 UpdateStatus
impl Debug for UpdateStatus
Source§impl<'de> Deserialize<'de> for UpdateStatus
impl<'de> Deserialize<'de> for UpdateStatus
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 UpdateStatus
impl RefUnwindSafe for UpdateStatus
impl Send for UpdateStatus
impl Sync for UpdateStatus
impl Unpin for UpdateStatus
impl UnwindSafe for UpdateStatus
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].