pub enum PaletteResult {
Show 16 variants
ToggleTheme,
CycleDensity,
ToggleHelpStrip,
OpenUpdateBanner,
EnterInputMode(InputModeTarget),
SetTimeFilter {
from: TimeFilterPreset,
},
OpenSavedViews,
SaveViewSlot(u8),
LoadViewSlot(u8),
OpenBulkActions,
ReloadIndex,
OpenAnalyticsView(AnalyticsTarget),
Screenshot(ScreenshotTarget),
ToggleMacroRecording,
OpenSources,
Noop,
}Expand description
Semantic result of executing a palette action. Decoupled from CassMsg
so that palette.rs stays side-effect free and doesn’t depend on app.rs.
The app-level adapter (palette_result_to_cmd in app.rs) translates these
into concrete Cmd<CassMsg> dispatches.
Variants§
ToggleTheme
Toggle the UI theme (light/dark).
CycleDensity
Cycle the density mode (compact/normal/relaxed).
ToggleHelpStrip
Toggle the help strip visibility.
OpenUpdateBanner
Open/check the update banner.
EnterInputMode(InputModeTarget)
Enter an input mode for filtering.
SetTimeFilter
Set a time filter (epoch seconds).
Fields
from: TimeFilterPresetOpenSavedViews
Open the saved-views picker.
SaveViewSlot(u8)
Save the current view to a numbered slot.
LoadViewSlot(u8)
Load a view from a numbered slot.
OpenBulkActions
Open the bulk-actions menu.
ReloadIndex
Reload/refresh the index.
OpenAnalyticsView(AnalyticsTarget)
Navigate to an analytics sub-view (by name).
Screenshot(ScreenshotTarget)
Request a screenshot export in the given format.
ToggleMacroRecording
Toggle macro recording on/off.
OpenSources
Enter sources management.
Noop
No action (e.g. palette was empty when executed).
Trait Implementations§
Source§impl Clone for PaletteResult
impl Clone for PaletteResult
Source§fn clone(&self) -> PaletteResult
fn clone(&self) -> PaletteResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PaletteResult
impl Debug for PaletteResult
Source§impl PartialEq for PaletteResult
impl PartialEq for PaletteResult
Source§fn eq(&self, other: &PaletteResult) -> bool
fn eq(&self, other: &PaletteResult) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PaletteResult
Auto Trait Implementations§
impl Freeze for PaletteResult
impl RefUnwindSafe for PaletteResult
impl Send for PaletteResult
impl Sync for PaletteResult
impl Unpin for PaletteResult
impl UnsafeUnpin for PaletteResult
impl UnwindSafe for PaletteResult
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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>, which can then be
downcast into Box<dyn 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>, which 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> 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> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more