pub struct WidgetState {
pub output: Option<WidgetOutput>,
pub error: Option<String>,
pub updated: Option<Instant>,
}Expand description
The latest result of a command widget.
Fields§
§output: Option<WidgetOutput>The last successful output, kept while later runs fail.
error: Option<String>Why the last run failed.
updated: Option<Instant>When the last run finished.
Trait Implementations§
Source§impl Clone for WidgetState
impl Clone for WidgetState
Source§impl Debug for WidgetState
impl Debug for WidgetState
Auto Trait Implementations§
impl Freeze for WidgetState
impl RefUnwindSafe for WidgetState
impl Send for WidgetState
impl Sync for WidgetState
impl Unpin for WidgetState
impl UnsafeUnpin for WidgetState
impl UnwindSafe for WidgetState
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