pub enum ReloadOutcome {
Ok,
Throttled {
remaining_secs: u64,
},
Skipped {
why: String,
},
Failed {
error: String,
},
}Expand description
Result of a WidgetKit / AppWidget reload attempt.
Variants§
Ok
Native reload was invoked.
Throttled
Mobile release throttle skipped the reload.
Skipped
Reload intentionally not called.
Failed
Reload was attempted but failed.
Trait Implementations§
Source§impl Clone for ReloadOutcome
impl Clone for ReloadOutcome
Source§fn clone(&self) -> ReloadOutcome
fn clone(&self) -> ReloadOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReloadOutcome
impl Debug for ReloadOutcome
Source§impl<'de> Deserialize<'de> for ReloadOutcome
impl<'de> Deserialize<'de> for ReloadOutcome
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
impl Eq for ReloadOutcome
Source§impl PartialEq for ReloadOutcome
impl PartialEq for ReloadOutcome
Source§impl Serialize for ReloadOutcome
impl Serialize for ReloadOutcome
impl StructuralPartialEq for ReloadOutcome
Auto Trait Implementations§
impl Freeze for ReloadOutcome
impl RefUnwindSafe for ReloadOutcome
impl Send for ReloadOutcome
impl Sync for ReloadOutcome
impl Unpin for ReloadOutcome
impl UnsafeUnpin for ReloadOutcome
impl UnwindSafe for ReloadOutcome
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