#[non_exhaustive]pub enum SoftwareUpdateState {
NoUpdates,
NotUpdatable,
Transferring,
ReadyToInstall,
}Expand description
State of a software update.
See this issue for the reason why this enum is marked as non_exhaustive.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoUpdates
No updates are available.
NotUpdatable
Device cannot be updated.
Transferring
Device is downloading new updates.
ReadyToInstall
Device is ready to install new updates.
Trait Implementations§
Source§impl Clone for SoftwareUpdateState
impl Clone for SoftwareUpdateState
Source§fn clone(&self) -> SoftwareUpdateState
fn clone(&self) -> SoftwareUpdateState
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 SoftwareUpdateState
impl Debug for SoftwareUpdateState
Source§impl<'de> Deserialize<'de> for SoftwareUpdateState
impl<'de> Deserialize<'de> for SoftwareUpdateState
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 Hash for SoftwareUpdateState
impl Hash for SoftwareUpdateState
Source§impl PartialEq for SoftwareUpdateState
impl PartialEq for SoftwareUpdateState
impl Copy for SoftwareUpdateState
impl Eq for SoftwareUpdateState
impl StructuralPartialEq for SoftwareUpdateState
Auto Trait Implementations§
impl Freeze for SoftwareUpdateState
impl RefUnwindSafe for SoftwareUpdateState
impl Send for SoftwareUpdateState
impl Sync for SoftwareUpdateState
impl Unpin for SoftwareUpdateState
impl UnwindSafe for SoftwareUpdateState
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