pub enum Message {
Show 21 variants
ToggleItem(usize, usize),
SelectAllCategory(usize),
DeselectAllCategory(usize),
SelectAllEverywhere,
DeselectAllEverywhere,
SwitchCategoryTab(usize),
ThemeChanged(usize),
RequestRun,
ConfirmRun,
CancelRunRequest,
RequestPreview,
ClosePreview,
PreviewFinished(usize, usize, Result<CleaningResult, String>),
PasswordChanged(String),
PasswordSubmit,
PasswordCancel,
AuthenticationResult(bool),
AdminNoticeAcknowledged,
RelaunchAsAdmin,
OperationFinished(usize, usize, Result<CleaningResult, String>),
ClearLog,
}Expand description
All state-transition triggers for the CleanSys GUI.
Variants§
ToggleItem(usize, usize)
Toggle whether a cleaner item (category_index, item_index) is selected.
SelectAllCategory(usize)
Select every item in a category.
DeselectAllCategory(usize)
Deselect every item in a category.
SelectAllEverywhere
Select every item across every category.
DeselectAllEverywhere
Deselect every item across every category.
SwitchCategoryTab(usize)
Switch the active category tab.
ThemeChanged(usize)
User picked a different theme from the theme selector.
RequestRun
User clicked “Run selected” — shows the confirmation dialog rather than cleaning immediately.
ConfirmRun
User confirmed the run in the confirmation dialog.
CancelRunRequest
User cancelled the run confirmation dialog.
RequestPreview
User clicked “Preview” — measure what would be cleaned without deleting anything.
ClosePreview
User dismissed the preview results dialog.
PreviewFinished(usize, usize, Result<CleaningResult, String>)
A single cleaner’s preview measurement finished.
PasswordChanged(String)
The password field in the sudo authentication dialog changed.
PasswordSubmit
User pressed Enter / clicked “Authenticate” on the password dialog.
PasswordCancel
User cancelled the sudo authentication dialog.
AuthenticationResult(bool)
A background sudo authentication attempt finished.
AdminNoticeAcknowledged
User acknowledged the “needs Administrator” notice (Windows).
RelaunchAsAdmin
User clicked “Relaunch as Administrator” (Windows only).
OperationFinished(usize, usize, Result<CleaningResult, String>)
A single cleaner (category_index, item_index) finished running.
Ok(result) with structured per-item detail on success, Err(message) on failure.
ClearLog
Clear the operation log and reset counters for a fresh run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Application.