pub enum WidgetSource {
Clock,
Command {
runner: CommandRunner,
interval: Duration,
},
Fixed(WidgetOutput),
Invalid(String),
}Expand description
Where a widget’s content comes from.
Variants§
Clock
A large clock, drawn by the front-end.
Command
A command run in the background.
Fixed(WidgetOutput)
Fixed content (tests, previews).
Invalid(String)
A configuration mistake to show in place of the widget.
Auto Trait Implementations§
impl Freeze for WidgetSource
impl RefUnwindSafe for WidgetSource
impl Send for WidgetSource
impl Sync for WidgetSource
impl Unpin for WidgetSource
impl UnsafeUnpin for WidgetSource
impl UnwindSafe for WidgetSource
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