pub enum OtaDecision {
NoUpdate,
Optional {
version: BundleVersion,
},
Mandatory {
version: BundleVersion,
},
NativeUpdateRequired {
min_native: BundleVersion,
},
}Expand description
Decision about whether to apply an OTA update.
Variants§
NoUpdate
No update available.
Optional
Update available but not mandatory — user choice.
Fields
§
version: BundleVersionMandatory
Mandatory update — must apply before continuing.
Fields
§
version: BundleVersionNativeUpdateRequired
Update available but native version is too old — needs app store update.
Fields
§
min_native: BundleVersionTrait Implementations§
Source§impl Clone for OtaDecision
impl Clone for OtaDecision
Source§fn clone(&self) -> OtaDecision
fn clone(&self) -> OtaDecision
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 OtaDecision
impl Debug for OtaDecision
Source§impl PartialEq for OtaDecision
impl PartialEq for OtaDecision
impl Eq for OtaDecision
impl StructuralPartialEq for OtaDecision
Auto Trait Implementations§
impl Freeze for OtaDecision
impl RefUnwindSafe for OtaDecision
impl Send for OtaDecision
impl Sync for OtaDecision
impl Unpin for OtaDecision
impl UnsafeUnpin for OtaDecision
impl UnwindSafe for OtaDecision
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